I'm not sure they have to be separated, and few countries have the funds to do that - especially in cities without Copenhagen-type population density. But then Copenhagen also has strict liability, which makes drivers far more careful. I don't see why it's such a big ask that drivers take their responsibilities seriously and not kill us and pedestrians in alarming numbers.