That is a bit of a premature conclusion ERC is throwing an error so there probably is something wrong. I do not use buses much and tend to forget the details. How can sw[1..8] be a wire? A group of wires is a bus, so it should be a fat blue line instead of a thin green one. My best guess is that its not recognized as a bus, and the labels near the nets are interpreted as just local labels that make connections outside of the bus.
While searching this forum for the old experiment I did with bus naming, I bumped into a topic from you in 2023.
*Edit: Added back quotes around sw[1..8] because else the forum software puts 3 dots in the center, while KiCad really uses two.