I used two 3mm x 6mm magnets to hold them together and a usb c cable as the cord for the lanyard.
The author marked this model as their own original creation.