Hyde here from Shopify.
Here is how you roll back your theme code. Is this what you're looking to achieve? If not, please explain what the issue is in more detail and I'll happily help you out further.
All the best, Hyde.
All your settings will save on the "settings_data.json" file in the "Config" folder, you can back up to the version you want. Please take a look at our screenshot here: https://prnt.sc/11l6up5