I have a 'bootstrap' system... I have recovery codes and a backup for critical things encrypted and stored in a public git repo I push to both gitlab and github. If I lose everything, I can use those recovery codes to access the things I need to recover my digital identity.
You can get back your phone number once you have a photo ID and buy a new phone. Then you should hope that your service providers aren't secure enough to have disabled SMS-based account recovery.