This sounds like an issue in the ignition lock solenoid. That is what keeps the key from being removed if the vehicle is not in park.
Take a look at this and let us know what questions you have. I included the testing and a TSB for this issue.
Images (Click to make bigger)
SPONSORED LINKS
Tuesday, September 1st, 2020 AT 5:38 PM