Boyfriend talks to his ex

So I found out my boyfriend is talking to his ex again and I told him to stop but he says she's just a friend now and he won't stop 
Idk what to do?