There are no bollards here, but large stones instead. If you want to map those, barrier=block seems more appropriate…?

But it’s indeed uncommon to map barriers alongside a road. And by the way, the pedestrian sidewalk is on the other side of those stones obviously, so mapping the barrier might mean you’d need to map all sidewalks separately, instead of tagging it to the road itself…?