Backing up software for reinstall

Hello! So, it just hit me that I originally installed Bazzite with CSM enabled, which is, apparently, Very Bad. Is there a safe way for me to back up my flatpaks and their configs, so that I can put them back into the system and carry on?
Was this page helpful?