If your iPhone or iPad widgets reset to their default settings after restoring your device from a backup, feel free to chalk that up to an iOS bug that Apple is aware of.
iPhone 13 and some iPads reset their home screen widgets when restored from a backup