These switches are essentially crimped together - the zinc alloy body will probably crack if you attempt to straighten it to dismantle or attempt to recrimp it on reassembly.
If you do attempt it I would suggest do it with switch in a plastic bag to contain the bits which may spring out when you open it up!
You could test its internal continuity, using the bike wiring diagram, before buying a new one.