Hi, I don't remember details of the pedal and how it swings, but I have replaced plenty of brake light switches.
If you pull up on the pedal do the brake lights go out?
Does the pedal flop around on the shaft?
Are any bushing missing or broken?
I would check that out.