Win 11 Pro MS Store purchase.
msi Z790 ACE Motherboard.
I suffered tremendously with this issue, and I couldn't resolve it with all mentioned methods like reg edits, scripts, whatever until I found a way to get in contact with human MS support person after a series of BOT/AI dogging.
However, that ended up in almost 2-3 weeks of mailing back and forth partially due to the fact I didn't allow them remote access to my PC and I would never allow it to anyone as Im skilled enough to handle everything necessary.
That resulted me having collected specific LOG files and sending them to the support contact.
Next, they requested me to go to the bank and get a written statement and stamped from my bank where the specific MS Store transaction was visible with date and everything else, then I had to scan it and watch this ...send it in Microsoft Word format.
So, after I provided everything requested It seems the support did "something" and now my Win 11 Pro account is restored, and I changed like 3-time Bios versions on my msi Z790 ACE and the Windows kept ACTIVATED.
Before that it was a nightmare every time I update BIOS , PUFF! Windows show they have to be Activated and nothing I did or try could get it Activated, prompting me to buy NEW Windows license.