To check activation status in Windows 11, select the Start button, and then select Settings > System and then select Activation . Your activation status will be listed next to Activation.
Ensure it says, "Windows is activated with a digital license linked to your Microsoft account."
If it shows something else, post a screenshot.
Changing a hard drive should not void your license. You can clean install Windows 11 on the new drive (while skipping the Product Key). After Windows is installed, it automatically connects to Microsoft activation servers, finds the digital license for your hardware, and activates Windows.