Not getting in parking gear otherwise working/running fine on 2005 GMC Savana 2500

Initially while parked, was not shifting any gear seem like stuck in park. After 3-4 turn off and on it got running ( shifting gears ) but does not go in parking gear.

Asked by for the 2005 GMC Savana 2500
poss shift lock out solenoid is hanging up or bad brake light switch.