Question: I just got a new work laptop. I would like to seamlessly switch my bluetooth devices (headphones, magic keyboard, touchpad) between work / personal Macs without complex repairing.

Has anyone solved this problem?

Ideally, I would love it if my bluetooth devices just paired with the computer docked into my dongle that connects to my monitor / power. Like if there was some kind of USB bluetooth controller that exposed my bluetooth devices as USB devices to whatever was connected to it, that would be awesome. But I haven’t found anything like that. I’m curious if people have different solutions?

It would also be ideal if this could be used for other bluetooth devices, ie seamlessly switch headphones...

Answer: 
I have a lightning cable connected to the hub that drives my external monitor. And connect my work or home laptops to my monitor. Then I can plug that lightning cable in to the magic keyboard and/or trackpad when I switch or when I need to charge the keyboard or trackpad. I don't switch all that often, so it is good enough.
If you are using macOS Monterey 12.4 or later you can use Apple **Universal Control** to switch apple magic keyboard and mouse seamlessly between devices (in your case personal/work macs) without needing and extra hardware of scripts.

**On your Mac**
Choose Apple menu  > System Preferences, then click Displays.

Click the **Universal Control button** at the bottom of the preferences window.

Select “Allow your pointer and keyboard to move between any nearby Mac or iPad.”

For detailed instructions just visit the apple site, link provided below.
<https://support.apple.com/en-in/HT212757>