I've got at least 10 feet of random unshielded wiring between my CA and the two phaserunners' throttle inputs (and a separate shunt that feeds them both) on SB Cruiser; it's been running fine with that for months (a year now? I don't recall when exactly I set that all up).
Part of the cable is the original CA cable to a JST, so however long that is from the CA down the tiller to the bundle of stuff hidden on the tiller under the wrap to a JST-extension that might hve come from ebikes.ca, then an extension from there down the tiller and into the "triangle" box below that that's a few feet long, then another several feet long made from some multiwire cable (possibly an old DB9 serial cable but I don't remember) I had laying around (several years ago when I first rewired the trike) with JSt on both ends, which runs down the frame to the rear of the trike underneath, splices into the external CA shunt wiring, then some other random wire from another JSt plugged into that that splits the signals out to the two controller's throttle inputs (this cable is also that old), then spliced onto those are cables to plug into the two different version PR's connectors.
(it's another of the many things I'd love to redo but never have time for since I have to use the trike all the time, and it would take days or more for all these "little" things).
So, if you use a shielded cable, especially one that uses twisted pairs (or separately shielded pairs) where one of each pair (other than the shunt) is ground, it's pretty likely to work over at least the distance I'm using it at. Old RS232 cables are relatively easy to find cheaply, and should have enough wire pairs for this, at least for the 25-pin-cable variety (even the 9pin versions might, as some of the good ones have more than 9 wires+shield, using wire pairs in there already). Not too difficult to make up a cable from that and test--personally I'd keep the DB-connector ends already on it and either make an adapter from that to the CA/PR, if the ones you ahve use JST, but if they have the WP connectors on them I'd get mating ones to splice into the serial cable directly (replacing the DBs)
There's no serial communications between them so no worries about data corruption/etc., but even if there were, I'm pretty sure my Grin-made USB-serial cable for the devices to program them with the laptop is at least 6feet long, and it's possible that it could work even longer than that (as long as it's not routed near the motor / phase cabling).