Sorry, but I am not familiar with the ignition switch in the dash. I was assuming the switch was in the column.
I did some research and found more info. This description of the problem was not exactly like yours but I thought it was similar enough that it might help. "When you go to shut the car off,the key goes to the "off" position, but will not return to the "lock" position (so that the key can be removed). After pumping the brake pedal several times, the ignition lock can be turned to the "lock" position, and the key can be removed. it has a floor shift, which seems to operate properly."
Here is the fix: "Replaced shifter assembly. When squeezing the shifter repeatedly, the solenoid in the column would 'hang up' once in a while."
I also found out that this is very common on the `97 to present Grand Prixs and Grand Ams w/floor shifted automatic trans. The lock release solenoid/actuators on the shifter assembly often fails. This is not a replacable part. The complete shifter assembly needs to be replaced. The only way you can get this part is to buy the whole shifter.