I’m sorry, I’m not in a position to talk about my own experiences.
But my advice would be contact the police, it might seem like an over-reaction, and they may even tell you that there is nothing they can do,(but hopefully not) but at the very least it will serve as evidence of the problem. Also keep a record of how, when, and where they harass you and present this to the police if the problem continues after your first complaint.
Don’t attempt to reason with your ex, don’t agree to meet alone with them, change your phone number if you have to.
Don’t suffer in silence, let your friends and family know what’s happening. Abusive people attempt to isolate there victims by making them feel ashamed about what’s happening to them; they make it seem like the victim is responsible for the harassment carried out by the abuser. Surround yourself with a supportive group of people. If you don’t have a close family, or friends you feel you can trust, there are other ways to build a support network; I don’t know your location so I can’t give you specific numbers/places but if you google ‘harassment ex-boyfriend + your location” you should find out the law in your area and what places you can go to/call to seek further help.
Some of this advice might seem extreme to some people, depending on their definition of ‘hassling’, but no one has the right to make you feel unsafe or uncomfortable and you are perfectly within your rights to call the police and cut contact with this person.
