How do I get a guy to get over his ex?

Apparently he brings her up and talks about her to his friends and he has said whilst he’s was still dating me that she’s perfect etc etc
How do I get a guy to get over his ex?
Post Opinion