my boyfriend texted his ex

Cristina
Hey guys! So I just discovered that my boyfriend texted his ex telling her that he loves her and that he hopes she's good, but we are really good in our relationship, that's why it was really painful for me 
They didn't break up because they didn't like each other but because she's in another country and they couldn't be together. I don't know what to do :( it really hurts