If you understand tech and have a tech background, an external speed sensor is likely very "doable" for you.
The speed sensor has 3 wires. A ground, a positive (something in the area of 4.5v) and the sensor lead. The wires to the motor, will be 3 big phase wires, 3 sensor wires (same colors as the larger phase wires), a positive (with something in the area of 4.5v on it) a ground, and very likely a part time speed sensor wire (that might be white?).
An external speed sensor is going to look like this, but you might want to track one down that shows it's internal wiring diagram to save you the trouble of figuring out which is which. They're universal, wheel size makes no difference.
Amazon.com: Ebike Speed Sensor Hall Magnetic Head Wheel Rim Speed Detection SM-3A Connector with Cable Ties for Electric Bike e-Bike Scooter : Everything Else
www.amazon.com
Sooooo, all 3 of the wire that you would need are going to be available in the motor harness and likely easy to access at the controller. You would want to "T" into the positive (4.5v) and negative wires, and locate the speed sensor wire. When the speed sensor wire is located, you would cut that, and splice the newly installed external speed sensor signal wire into the side of the cut leading to the controller.
Best of luck!
-Al