You mean "love triangle".
Here is a definition from "wikipedia":
A love triangle is a romantic relationship involving three people. While it can refer to two people independently romantically linked with a third, it usually implies that each of the three people has some kind of relationship to the other two. The relationships can be friendships, romantic, familial (often siblings), or even pre-existing hatred between rivals.
Student or Learner