Is it worth getting married ?

I F(25) have been in a relationship for almost 2 years and I’ve talked to my partner about marriage plenty of times. Earlier this year he said he would like to marry me but as of recently he said he doesn’t know if he wants to marry me anymore. After everything I’ve forgiven him for like talking/fliritng with girls multiple times. I’m getting to the point of just not wanting to get married to him anymore. Every time would mention how it makes me feel when he flirts with other girls he gets upset at me. Saying I can’t get over the past blah blah blah. But I want to get married and I love him but idk if I want to marry him. Plus, the things he say to his friends about me. I just need advice or someone tell me what to do.