need some advice w an ex

2 years ago i dated this guy and it was my first heartbreak. Recently he hmu to send me condolences on one of my family members who passed and so I started texting him right… we hung out many times during the week, we would ft n talk on the phone and we ended up becoming good friends .. but then with benefits and that’s where i messed up lol. I know it’s never a good idea to have fwb but i’ve always been so attracted to him. Feelings for him again started creeping back up but i kept quiet bc i didn’t wanna end it. Recently he went to a party and made out with a girl and when he told me I said okay we’re gonna stop the benefits part now bc for 1. i hate sharing and feeling like i’m in competition with other girls and 2. I knew it wasn’t a good idea to continue anyway but i didn’t tell him why, he just accepted it. But the feelings are still there and a part of me wants to tell him but another part wants to stay hushed to continue being friends with him bc we vibe and click so well! but it also hurts knowing everything.. i got myself into this mess and don’t know how to help myself now .. anyways what do u guys think i should do lol