Once you let go of the knob grab the end of the latch bolt with your fingers and pull.
Thumb press door handle sticking.
This is because the issue is not with the door and not even with the control the knob has over the stuck latch.
The issue a door latch stuck due to a jamming latch will have no real variation between how the latch moves when it is pressed in or when the handle is turned both when the door is open and when it is shut.
Start by trying to push the lock button.
Push and hold the button in.
Release the button quickly try sliding your finger off the button so the pressure is maintained up until the precise moment of release with no backing off.
The most common cause of sticking door handles is some kind of malfunction within the tubular latch itself.
Turn the handle of the doorknob to expose the bolt.
Turn the knob to open the door and release the knob slowly.
Open the door and squirt graphite powder into the key lock.
Squirt the bolt with graphite powder.
A door knob lock button stuck has a few quick fixes that you can try out.
Remove the cap on the graphite powder.