This indicates your boyfriend is not over his ex and she is constantly on his mind. That is why he keeps talking about her and can't help doing so even when he is with you. It is possible that doesn't do it consciously, but it doesn't make him any less complicit.