If your drive is encrypted with Bitlocker, the only place the Bitlocker Recovery key is automatically stored is on the associated Microsoft account on the link below, be sure to check any Microsoft account that may have been used on the PC and also any work or school account that may be linked to the PC.
(Note, even if your device does not show on the Microsoft account, the Bitlocker Recovery Key may still be available on this link)
https://account.microsoft.com/devices/recoverykey
Are you able to find the Bitlocker Recovery Key on any account that may have been used or linked to the PC?
If not, or if the associated account is not accessible, do you have a safe backup of your files, or use a cloud service like OneDrive to sync your files online.
If you are unable to access that account or find the Bitlocker Recovery Key on any other account that may have been used on that device, then I am sorry for the bad news, a Windows reset will not work on an encrypted drive, the only way to access that device is to create a bootable Windows 11 USB on another working PC and use that to clean install Windows and at the start of the installation, delete all partitions on the drive to remove the encryption, which will sadly result in loss of all data on the drive.