The best extender is a 120V extension cord, if the cable is waterproof or sheltered from the elements. The second recommendation would be exactly what you suggested, a quality USB A female to USB A male cable. I too wouldn’t run it more than 20ft (especially important for a Pan camera with motors), otherwise I’d look into other options (and there are some, but they are more complicated).
If you are running a cable outdoors, the below Self-Fusing Silicone Tape can waterproof the connection. It has no glue, it only sticks to itself. Very clean. We used to use this to waterproof connectors in my military days:
https://www.amazon.com/Rescue-Self-Fusing-Silicone-Rubber-Repair/dp/B08HWLRWL2?th=1