The process of letting go is so especially painful process but you need to let go, Otherwise we just keep ourselves stuck in the same place. It's not healthy to fantasize about a future with this person.
I often just push the feeling of hurt down. For example, with friendships and people saying mean things. Cause those things mattered to you and someone picked at it. It hurt cause it did in fact matter to you, and they tore it apart.