Was a new installation made after drive replacement, or backup was restored, or drive cloned?
Please show Activation page of Settings. Install ShowKeyPlus tool from Microsoft Store, check the edition of your product key and tell the result.
Could it be that you have Windows 7/8 license upgraded to Windows 10 then to Windows 11? In this case new installation cannot be activated using Windows 7/8 license.