Go to ./var in home and backup the entire "com.valvesoftware.Steam" folder if you plan to use Flatpak again, or navigate to data/Steam/steamapps and copy just the stuff there. For native games you might have to look inside .config and .local in "com.valvesoftware.Steam", that's where games usually store their config files and saves.