Bestie issues

My bestfriend and her ex broke up very long ago. But they used to just have casual sex even after the breakup. But then she had sex with one of his friends and says she completely moved on. I met him and a group of guys later on after their break up and my best friends ex and I immediately hit it off. We’ve been texting as friends for a while and I like him and he said he likes me. My bestfriend said it’s okay if me and him get together. But I would feel a little uncomfortable considering they’ve had sex. And I feel like it would be weird because he’s had sex with one of her friends before And I’m not sure if he really likes me for me or is trying to make my bestfriend mad or jealous. But he’s played her and I don’t know if he’d do the same for me.