Thanks to the ebike boom, you can now get 9-speed freewheels. So a new hub/wheel might not have to happen.
However, several of the issues already mentioned remains.
Hub width, available gear ratios, new chain, new shifter.
Also, 9-speed freewheels have the weakness that caused cassette hubs to be invented - risk of axle bending/breaking.