I can't seem to get over my ex

He wants me back and did some pretty awful stuff in the relationship, we have a two year old together. I'm with a very good man now and he treats my daughter wonderfully. But it isn't healthy after a year to still think about him and feel guilty about wishing my boyfriend was him at points. I'm literally trying so hard to get over him :(