I use a Logitech MX master 3 connected via bluetooth to an Intel MacBook. For those who don't know, Logitech has special software to remap certain buttons on the mouse, as well as change scrolling direction, etc. Many users (including me) have run into issues where the software stops remapping the buttons, and it won't be fixed until a reboot of the computer. Not even reseting the bluetooth module or killing bluetoothd will fix it. Note that this only happens when the mouse is connected via bluetooth, not via the USB receiver.
A few days ago I stumbled upon the strangest fix: unlocking my Bitwarden password manager, which is installed as a Safari extension. So far this is 100% reproducible, across dozens of tries. I can't see the connection, and don't have the time to spend debugging, but this info may be useful to other Logitech mouse users.