A solution for USB flashing?

It’s what I said in the OP:

Basically the USB device (Android phone, Nitrokey, hardware wallet, etc.) appears in my Debian-based sys-usb as /dev/<something>, and when the said device enters in bootloader mode, /dev/<something> disappears and the USB device reappears as /dev/<something-else>.

Of course assigning the USB device to a VM doesn’t work, because such /dev/<something> USB device is unassigned when it disappears, and it isn’t reassigned after reappearing as /dev/<something-else>.

There doesn’t seem to be any good solution for this, only compromises. My compromise is having sys-usb-flashing as a disposable with Internet connection that I only start after unplugging all USB devices and shutting down sys-usb.

Ideally I could have one USB-C port for sys-usb-flashing and the other ones for sys-usb, with both running at the same time. But I don’t think this is possible.