Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
If you have reset Windows, then Office (Microsoft 365) needs to be fully re-installed.
When you first installed and activated Office that licence should have become associated to your Microsoft Account online and it is from there that you can re-install Office without the need for a product key: