Do you use Discord? There’s an issue at least a year old for me wherein if I have been using discord for a while, quitting discord kills my mouse until I unplug/plug my mouse back in and reopen Discord. No other electron apps do this.
No discord here. In this case I fully disconnected my USB-C devices, replugged and they were still unresponsive. I then rebooted and everything worked again.