Although, in Sweden i am pretty sure the crossing from the example it would have had a pedestrian/cycling tunnel beneath it.
Look around, they are everywhere.
https://maps.app.goo.gl/BxEh3gBhooeH9Pfe7?g_st=ac