If you use a 2024 or newer USB-C Apple Magic Mouse, connect it directly to your Mac using a USB-C cable for 30 seconds. This refreshes the hardwired handshake and forces a re-pairing.
My mouse scroll wheel is not working properly - Microsoft Q&A mac mouse scroll not working
The Magic Mouse uses a capacitive surface to register scrolling gestures. If you use a 2024 or newer USB-C
Simply log out of your macOS user account and log back in. That restarts the same input services without the Terminal. mac mouse scroll not working
A known bug: These apps sometimes send a “scroll lock” command during updates. Reassigning the scroll wheel to “default” or “smart shift” often fixes it.