Hello, how are you?
My name is Paloma B., I am very happy to be able to try to help you in the best possible way.
You shouldn't need to change your license, just the new computer's Windows installation needs to be compatible with the key, in this case Windows 11 Pro.
First on the previous computer, unlink the Windows license by running the commands below in PowerShell or Command Prompt:
slmgr.vbs /upk
slmgr.vbs /cpky
After that on the new computer, press Windows+I to access the settings and navigate to Update & security > Activation.
Click on the Change product key button and enter your Windows 10 Pro key.
This must be identified so with your key, Windows will be upgraded to Windows 11 Pro.
If you don't recognize the key, first try to upgrade to Windows 11 Pro using the generic upgrade key below.
VK7JG-NPHTM-C97JM-9MPGT-3V66T
After finishing the upgrade to Windows 11 Pro, try to change and use your Windows 10 Pro key which also serves to activate Windows 11 Pro.