Check on another PC, if it does not work, then no actions will help, because the mouse is dead and already.
The mouse is such a simple device that it does not require special drivers to just move the cursor and operate the basic buttons.
The question is - is the mouse not working at all (you write that it works) or is it not detected only in the game? If the mouse works, I would rather think about the problem with the game and not the driver ...
However, if there are dedicated drivers for this mouse, download and install them.
Enter the device manager (computer -> Right mouse button -> properties -> device manager -> Mouse and other pointing devices), find your mouse, double-click, driver tab -> update driver -> browse the computer (you will select the driver to install) ) -> find the driver folder and install it.