Follow https://support.microsoft.com/en-us/surface/forgot-uefi-password-for-surface-e44d979a-7d85-4108-98d0-6bce7d421046 and refer to https://learn.microsoft.com/en-us/answers/questions/2307661/uefi-administrator-password-forgotten
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