Do you have any of those games it feels like only you remember? For me, it's Prisoner of War, a third-person stealth/adventure thing on the original Xbox that saw you play a captured WW2 pilot trying to break out of prisons like Stalag Luft and Colditz.
It had some neat ideas for 2002: the prison camps were relatively open and they ran on a schedule. That meant once you had your objective—steal a document, get a disguise—you had all sorts of different routes to complete it, but you'd need to be back in bed by morning roll call.
Kind of neat, although it did look like a Morrowind mod. Anyway, the reason I bring it up is I've been playing the demo for The Stone of Madness, the new game from the devs behind Blasphemous that sees you and a cohort of comrades try to bust out of an asylum in an 18th-century Spanish monastery.
Which, yep, is exactly the kind of thing I'd expect the devs behind Blasphemous to make. Imagine Commandos with a light smattering of Darkest Dungeon and you're not far off.
This is squad-based stealth: you're in charge of a gaggle of inmates as they wake up each day and try to inch along a little further in their quest to break free.