As long as you are a Global Administrator of the Entra tenant associated with the subscription, you can take ownership of it by following https://learn.microsoft.com/en-us/azure/role-based-access-control/elevate-access-global-admin?tabs=azure-portal%2Centra-audit-logs
If not, then follow https://www.joeyverlinden.com/what-happens-if-you-lock-out-your-azure-tenant/
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin