I think I'm in love with my best friend😁

So basically my bestfriend is my ex-boyfriend. We were together at a very young age (12) and we broke up because we moved to different schools and we didn't completely understand the commitment it took to be in a relationship, so we decided to stay friends and actually we are like best friends now, although we always admitted we had feelings for eachother. Anyway this year I convinced him to ask this girl out because i thought it would be a good idea and I had this massive crush on this guy who I thought liked me but that's another story. So yeah I got him to ask her out and she said yes and I was happy for him but recently he has been flirting and admitting that he has been thinking about us being more and how he wants to kiss me and all this and I was sort of happy because I had feelings for him, but then the next day he said that he didn't know what he was thinking and all this so I told him that he better figure out what he wants because it's unfair for his girlfriend and me and he said that he completely agrees. It's just he has gotten me all confused and I have had feelings for him for a while but idk anymore. I also remember him saying that right before I told him to ask that girl out he had feelings for me but didn't want to do anything cause he knew that I really liked the other guy.
Please someone give me advice or a clue of what is going on, I need help really bad!!!