s13 brake light issues

so i was driving my coupe theother day and suddenly my brake lights shut off, i have running lights and turn signals still but can’t get any brake lights. iwas wondering if anyone had this issue before, or know what it might be

update:
we plugged the switch back in and now the brake lights stay on.

maybe rusty connector on the inside of the driver side trunk (inside the little pocket where the factory jack goes…) they may look good but may be corroded…

or check brake switch at the brake pedal…