I didn’t think I liked these people

I have three friends I flirt with for the fun of it, I just got jealous when they all hung out together. I don’t know why I’m jealous and who I actually am jealous of, only that I feel sad now.