A family of Microsoft word processing software products for creating web, email, and print documents.
You should be able to reinstall Office via your account at https://account.microsoft.com/services .
Depending on the type of license, you may run into activation issues. Typically, if you have a one-time payment license such as Office Home 2024, the new hard drive will make the activation servers at Microsoft think that you have a new device. That is why you need to reactivate. See if https://support.microsoft.com/en-us/windows/activation/activate-microsoft-perpetual-products-using-the-product-activation-portal helps. Sometimes, you have to contact the chat support via https://support.microsoft.com/contactus for further assistance.
On the other hand, a subscription license should reactivate immediately.