Microsoft 365 apps recovery
If the registered Azure apps are accidentally deleted, recovery is still possible if the apps are not removed from the tenant.
Go to the tab, access the app activation link, and grant Admin consent. After this activity, the app is active again.