Better to ask how much is a good motor wheel. If you ride your bike hard on the throttle your rim might fail first.
Such as deformed spoke holes in the rim:
View attachment 382790
Geared hub motors have their issues. I'd open yours up and look inside.
Motors can be inexpensive, or not. I bought a rear direct drive motor for $20 ($38 tax and shipping) a few months ago.
Bought one three years ago in a wheel for $600+. Nice motor, and it now sits broken:
View attachment 382793
Ebikes have issues from time to time. Seems like they're easier to build than to fix.