Follow the procedure described in https://support.microsoft.com/en-us/windows/reactivating-windows-after-a-hardware-change-2c0e962a-f04c-145b-6ead-fb3fc72b6665#:~:text=If%20Windows%2011%20wasn%27t,then%20enter%20the%20product%20key.
Make sure to note your product key - use that information to reactivate the installation
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin