Thinking about Ex..

Is it ok to still feel hurt about things my ex did? I was with him for just over a year and it was very toxic and he treated me horribly.

But now I’m with my current boyfriend for almost a year and a half an he’s amazing. However every once in a while I just think about the shitty things my ex did and it sucks.

Is it ok for me to still be hurt? I don’t miss my ex or have anything but negative feelings for him now so should I not feel anything when looking back or is it still ok to feel bad?