Why is my brakelights staying on while engine is turned off. Is it a sensor swit on 2003 Hyundai Santa Fe

On my 2003 Hyundia Santa Fe my rear light remainds on while my engine is turned off.

1 answer
start with ck'ing brke light switch under dash that works off brk pedal arm. unplug and see if lights go off,if so repl switch