Ya they're expensive. 😭 Hub motors , while being cheaper are also are extremely heavy, my electric moonbike was almost 90lbs. Makes for harder pedaling though it does assist you if you can pedal hard enough. Typically, I would have to jump off and walk it up the hill (using the motor, it then turns into a pack horse while you walk if you have a load, heh).
Enduro motorcycles are pretty nice and cheaper than the nice ebikes