What should you do when you know your girlfriend is still talking to her exboyfriend?

Nothing. They are perfectly entitled to remain friends. You only need to worry if they start behaving as if they were together again.