Should I Give up or Keep Trying?

I am going to turn 39 and I am single. I had a difficult break up 10 years ago. Since then I have had several relationships but I never found someone to really share my life with and have long-term plans. I have tried a lot, many times. I also invested time and money in my mental health, to improve myself, to feel better about myself and also find a good person for me. But it seems to me that it’s not helping and I feel like something stuck in my brain is preventing me from achieving this dream. I know I’m not perfect and that I still don’t have perfect self-esteem, self-love, and other stuff, but I’m pretty happy about many things in my life and proud of what I have been able to achieve. Brooke said to someone that if you are trying and it’s not coming, you probably have to give up. So I would like to know if I should give up or keep trying. And if I should give up how can I give this up, my brain doesn’t seem to know how to give up such an important dream. Thank you!