A Mix of Cassette and internal gear hub
Sturmey Archer
Oh but you want a hub motor rear wheel? I think those have freewheels
The freewheel, I believe, screws onto a part connected to a sensor ,
for the pedal assist to cut in...
there is an electric bike sub forum
here ..
...