Replacing the brake light switch?

Should be able to squeeze those tabs in and pull it out to the right (of your picture). Unless it's totally rusted or painted in there. Maybe soak it in WD40 or something. But... Why are you worried about breaking it if it's no good?