about two students and a girl (or two schoolchildren)

I watched the movie a few years ago. It seems that at first there were two students (or a school), they were bullied by their peers, then one girl became attached to them. One day they got tired of being humiliated, and they fought back, and then they began to commit lawlessness altogether. with the girl, they regularly made love and were jealous of each other. I don’t remember anything else.

parts of what you say sound like John Tucker Must Die. He is a player cheating on his girlfriend’s and they are all jealous of each other. Then they all work together to get him back for cheating.