Long USB cables have repeaters in the middle & don't cause any significant degradation.
I have 15m cables in use here for remoting keyboards/mice [with bluetooth dongles on the ends of some] & also tethered shooting on my camera - all with zero issues, even pulling hi-res video files over them, camera to computer.
You can get them up to 30m - example Amazon search - with two repeaters, though I've never tested these personally.
From YourCableStore - USB Cable Length Limitations And How To Break Them
Maximum length of USB active (repeater) cable:
This number depends if you are using a regular cable with an active
cable or not. If you are not using a regular cable, then the maximum
active cable length for USB 2.0 is 30 meters (98 feet and 5 inches)
and the maximum recommended length for USB 3.0/3.1 is 18 meters (about
59 feet). If you are using a regular cable (max length of 5 meters for
2.0 and max length of 3 meters for 3.0/3.1) with an active cable, then the maximum length for USB 2.0 is 25 meters (about 82 feet) and the
maximum recommended length for USB 3.0/3.1 is 15 meters (about 49