Hello
If the key was originally a Windows 7 license that you later upgraded to 10, then 11, then it is no longer possible to use it to reactivate Windows 11. You can still use it for Windows 10, but not Windows 11. This is due to a policy change Microsoft made not too long ago. Sorry.