I think ebikes should be able to switch classes.
I had one that would effectively let me do that. I'd always switch to a class 1 mode and pedal at the speed of other bikes when I was on a walking/biking path.
The trouble isn't the ebikes, it's the inconsiderate people on them.