Looking at the pics, that appears to be what holds the shifter in a specific location. If it's installed, the shift lock is stopping it from going to park. If that is the case, the shift lock is preventing the key from coming out.
Try this and let me know what happens. With the key on, press and release the brake pedal a few times and see if you hear the shift interlock actuator clicking.
Let me know. Also, let me know if the key stuck in ACC is still happening.
See pic below for actuator location.
Image (Click to make bigger)
Wednesday, June 29th, 2022 AT 9:16 PM