Are you using Windows 10 or 11?
I'm sorry to say that if you've locked your device online using 'Find My Device,' there is no direct option to unlock it. This feature is designed as a security measure in case the device is lost.
The only way to regain access is to reset your computer or perform a clean installation.
From the sign-in screen.
Press and hold the Shift button, then click the power icon on your monitor and select Restart while still holding Shift.
This will take you to the recovery menu.
Click Troubleshoot > Reset This PC.
If this doesn't work, you'll need to perform a clean installation of Windows. Let me know if you need the steps.