If you have a Microsoft account linked to your computer, the most straightforward way is to use the recovery option from the login screen. On the screen where it asks for your password, look for a link that says "Forgot your password?" or something similar, and follow the steps it gives you. It'll ask you to verify your identity through the email or phone number associated with that Microsoft account, and you'll be able to set a new password without losing any of your files or installed programs.
If you don't have access to those recovery details or your account is local only (no Microsoft), then you'll need a Windows recovery USB drive. You can create one from another computer with Windows 11, and then boot your Dell from that USB to access the system recovery options. From there you can reset your password or do a reinstall that leaves your files intact, though you'll need to be careful with the steps to avoid accidentally formatting your data partition.
Most likely you'll get out of this jam quickly with the Microsoft method if you remember the email or phone number you used. If that doesn't work for you, the recovery USB takes a while to prepare but it's pretty safe if you carefully watch where you're clicking.