A998 stuck in drive

What is your truck? Where is shifter mounted.

thinking here.
It won’t leave drive from the lever.
It will leave park to drive

So it will move the trans one way bit freewheeling the other way. It will push but not pull.

I don’t think it’s inside the trans at all. I think it’s a late model cable shift that is broken inside.