Make plans of your own. Get together with friends you never get to see. Try a new sport or volunteer at an animal shelter. Do things that you couldn’t have done when you were with your ex.
Keep your thoughts in the present — only think about the present and making goals for your future. The past is the past, leave it there and keep moving forward. A much better life is waiting for you when you stop thinking about your ex.