If you're having trouble getting someone out of your mind, here are some tips that might help:
Accept your feelings: It's okay to feel the way you do, but it's important to acknowledge that the person may not feel the same way.
Distance yourself: Sometimes, distance can help. If possible, limit your interactions with the person and avoid situations where you'll be around them.
Focus on yourself: Invest in yourself and your own interests. This can help you shift your focus away from the person and onto your own growth.
Surround yourself with supportive people: Spend time with people who uplift and support you. Being around positive influences can help you feel better and distract you from negative thoughts.
Challenge your thoughts: If you find yourself constantly thinking about the person, challenge those thoughts. Ask yourself if they're based in reality or if you're creating a fantasy in your mind.
Seek professional help: If your thoughts and feelings are overwhelming or interfering with your daily life, consider speaking to a therapist or counselor. They can help you work through your emotions and develop healthy coping strategies.