Hi Andrew,
If your Windows 11 licence is based on a free upgrade from a previous Windows 7 licence, that is causing the activation error.
A while ago Microsoft changed the licensing rules, and after they changed the licensing rules, it is no longer possible to activate Windows 10 or 11 on new hardware with a previous Windows 7 or 8 licence.
Even though you have not changed your motherboard or PC, that change is causing the activation error, if your Windows 7 product key is not accepted to activate Windows, this forum is just a user to user forum, you will need to try to contact Microsoft Support directly to ask them if they can activate your Windows licence for you.