A fringe foot
You sew a close zigzag over the bar. The loops sit on the cloth. Brush them or leave them, as the look you want. A loose weave can pull into the stitch. Stabilise it.
This is slow and it uses a lot of thread. Test the length and width. A stitch that is too wide can hit the foot.
Do not confuse it with a tailor tack foot. Both make loops. A fringe foot is for a band of decoration you leave in. Tailor tacks are marks you remove.