@sam That sounds pretty cool!
I myself don’t know anything really helpful. I just want to buy/build and ride the damn thing.
Maybe pick the most common type of e-bike + motor, and build a FOSS control system for it? Leave out all the tricky hardware parts?