Good to hear. I'd give him some melafix and salt...and leave the lights off for a bit
I once lost a blue eye pleco (back in the '80s when they were like $20 and the "poor man's royal pleco" vs. the holy grail of pleco-keeping that they are today) when one lodged itself in a piece of driftwood and wouldn't let loose. I had to cut him out. It was pretty stressful and he ended up passing about a month after the procedure. I should have given him a quiet place vs. dumping him back into the community.
I also once removed a plastic plant piece from a 10" tinfoil barb's mouth. Just grabbed him in a big brine shrimp net and used the tweezers. Dropped him back in the tank and he took off like nothing happened. Of course, I think that tinfoil barbs could go through a cycle in the washing machine and still be swimming!
Matt