If you have not already done so, you might want to read the Support Article regarding this: https://www.quicken.com/support/what-if-quicken-not-accepting-data-file-password
Note that this process requires that your Quicken Installation shows the Subscription is active. You can do this by going to Help > About Quicken.
If it shows you do not have an active subscription I suggest you do the following:
This process should resync your Quicken installation to your Quicken Cloud Account. Check your subscription status, again…it should now show that your subscription status is active. Then try opening you main data file, again, and proceed following the steps mentioned in the Support Article to reset your Data File PW.
IMHO, I'd rather restart using Quicken with a new, empty data file and recreate all accounts as of January 1st 2023.
Unless you have all the paper records and want to manually reenter all transactions since you stopped using Quicken back in 2018, it's highly unlikely that you will be able to retrieve transctions from your banks for the entire period. Start fresh, start clean with manual data entry for this year. Update your accounts to activate downloading once you're up to date. And do be sure to configure Quicken to create Manual and Automatic backups (see Edit / Preferences / Backup) every 1 time you close Quicken. One can never have enough backups!