Forgive yourself and go no contact with this guy. We have all done this, you know it’s the wrong person and you know whenever you are together, it won’t end well. Even a physical relationship begins to feel empty, because you know he is not emotionally present with you.
Get strong, don’t text him again and you will heal all over again. If he contacts you, tell him you can’t do this, because he is emotionally unavailable and you deserve more. Tell him he is preventing you from finding a healthier relationship and he needs to leave you alone.