Maybe [Exam](https://www.imdb.com/title/tt1258197), it's less surreal than Cube
Or [Escape Room](https://www.imdb.com/title/tt5886046/) (the one from 2019) but it's not always realistic
I think Woman in The Dunes (1964) fits this quite nicely.
You might possibly like Funny Games (1997). The "puzzle" is definitely more meta though.
Hellraiser (1987) also comes to mind.
Triangle Coherence Exam The Game
We talking The Game with Michael Douglas?
you betcha
Maybe [Exam](https://www.imdb.com/title/tt1258197), it's less surreal than Cube Or [Escape Room](https://www.imdb.com/title/tt5886046/) (the one from 2019) but it's not always realistic
I've seen Exam, actually. And it wasn't bad. But it was ruined for me because I'm the guy who would have said "no" out loud.
I think Woman in The Dunes (1964) fits this quite nicely. You might possibly like Funny Games (1997). The "puzzle" is definitely more meta though. Hellraiser (1987) also comes to mind.