I like the idea of Allen Gould however creepers dontdon't engage (and explode) if they cantcan't see the player. If you want to use the selfrepairingself repairing piston wall iI suggest tntTNT strapped to a lever or pressureplatepressure plate. This however still requires you to recharge the tntTNT.
IFIf you have access to the /give command and you dontdon't have command blocks disabled you could let command blocks replace the tntTNT (or simply remove the door for a few seconds before replacing it).
For an actual escape track through the prison, my idea would be to make it parkour like. If you want to make it challenging (and invest a lot of time into this) you could make a speedrun track that if you dontdon't run fast enough (or fail one of the jumps) you can push a button which teleports you back to your prison. This makes it very challenging for the prisoners and extremely frustrating. The buttons once again being hooked up to command blocks. This track will definitely make them think about what they've done wrong.