Apple - Is it possible to change the name of a bluetooth mouse?
With the new update, you may not find the cog wheel, so instead you can go into bluetooth settings and right-click (click with two fingers) the device you wish to rename.
It should come up with a context menu.
Select Rename, which will open a window where you can rename your mouse to anything you like.
You can do so in System Preferences. Open the Bluetooth panel, select your Magic Mouse and click the cog wheel at the bottom to select "Rename" from the context menu.
This option will only be available if the mouse is not plugged in.
In addition to other answers that indicate to use a secondary click on the device shown in the Bluetooth menu, also note that this is not possible while the device is connected with the cable.
I obtained a new Magic Mouse and connected it using the cable to my computer running macOS 10.14.3. The device was recognized and a system dialog informed me that "$PreviousOwner's mouse" had been connected to my system over Bluetooth and was ready to use. Naturally I wished to rename it, but the contextual menu only contained the option "Remove". There was neither "Rename" nor "Disconnect".
After having removed the cable and reopened the Bluetooth menu, the contextual menu showed the two options that were previously missing, and I was able to proceed with the rename without further problems.
I later reconnected the cable and noted that the two options again disappeared.