Output a specific page's datas from a "page builder" structure field

I already said above, you either have to echo the separator conditionally, or better: use CSS to add the separator using an afterpseudo-element (put each category in a span with a classname) instead of echoing it in the template.