I think it is a brake light switch. It has a spring pull and a spring and a piece insulating material on a pin and what looks like contacts. It's mounted just behind the foot brake linkage.
Does anybody know what this is?
It might be part of a vintage alarm system. They were motion activated or hooked to the pedal. Or its part of an electric bell or light switch..
Looks like a brake light switch.