Since the keyboard works, Bluetooth itself is fine on your PC. The problem is the mouse’s pairing or its connection to Windows. Try these in order:
Replace or recharge the mouse batteries.
Check the mouse’s power switch and make sure the Bluetooth LED is on.
Move the mouse within a meter or so of the PC and away from USB 3.0 hubs or Wi-Fi routers, which can interfere with Bluetooth.
Go to Settings → Bluetooth & devices → Devices.
Find the mouse, click the ⋯ menu and choose Remove device.
Put the mouse into pairing mode (usually hold the Bluetooth/connect button on the underside for 3-5 seconds until the LED blinks).
Click Add device → Bluetooth and select the mouse when it appears.
Removing the old entry matters. A stale pairing record often blocks reconnection, especially after a Windows update or if the mouse was paired to another device.
Press Win + R, type services.msc and press Enter.
Find Bluetooth Support Service, right-click it and choose Restart. Confirm its startup type is Automatic.
Settings → System → Troubleshoot → Other troubleshooters → Bluetooth → Run.
In Device Manager, expand Bluetooth, right-click your adapter and choose Update driver. If the mouse appears under Human Interface Devices or Mice with a warning icon, uninstall it there, then re-pair.