Happened at our table a couple of months back.
I was gonna give you advice on trapping them, but then I realized you were talking about their characters and not the actual players.
Then again, playing the odd session in an actual escape room might be fun.
Well I mean, next time your party needs to escape from somewhere, book an escape room that has a theme that’s close enough.
There’d be no tabletop element, obviously no weapon or spells, although your players can still kinda roleplay in there.
Most escape rooms around here already have their own little backstory and an actor introduces you to their shtick and sometimes interacts with you through the thing.
If you call them ahead of time, they might agree to slightly alter their existing stuff to accommodate your story.