Bicycles and pedestrians should absolutely not be mixed!
What needs to happen are dedicated bicycle lanes and reduced car traffic.
E-bikes and cargo bikes are also a lot heavier than other bicycles and are getting more common. Due to higher mass and being powered they're quite a bit more dangerous to pedestrians.
https://www.osteraker.se/images/18.5bb0400617c11d33b551007/1...
In bigger cities where the foot traffic is high, it's absolutely not possible, in my opinion.