Hi, I'm John! I will help you with this.
Just download the Minecraft Launcher from the Microsoft Store, then sign in with the same Microsoft account you used to purchase the game. Once you’re signed in, it should recognize your purchase and let you reinstall it.
However, if you chose not to keep your files during the reset, your saved worlds might be lost since they’re stored locally on your PC.
Let me know if you have any further questions or concerns.