This is not to mention on some streets the bike lane just randomly ends and you find yourself on a sidewalk with no separate lane and you have to choose whether to stay on the sidewalk and risk hitting a pedestrian, or dangerously swerve into the street and risk getting hit by a car.
If they just built proper separated bike lanes protected from car traffic, and clearly separated from pedestrians this simply wouldn't be an issue at all. Copenhagen has it right where the bike lanes are painted bright blue and are on a physically raised level from both the street and sidewalk, in addition to prioritizing bikes and pedestrians at many intersections without stoplights. It's a joy to cycle around Copenhagen because of this.