Help me get over my fear

So I’ve been going out with my bf for 3 years and we have been talking about having sex. I’m really scared about having it because my ex almost raped me and the thought of sex is really scary. How can I get over my fear?