Help with saving a scene and its state.

Godot Version

4.2

Question

So i have stumbled upon a problem/question i dont know how to solve yet regarding saving a scene and id like some advice/direction. My game generates a random dungeon, alongside enemies, encounters, etc. The dungeon can have many things inside as well such as dropped items, special effects etc.
Now my issue is, when the player leaves the area, there is no way to go back without generating the dungeon all over. What can i do to save the state of the scene properly? Im not concerned about saving it to disk, these are temporary dungeons which dissapear after opening a new one or the portal dissapearing. I just want to save it during runtime.