Would love some advice?

I have a female friend who I’ve noticed a pattern with. We used to be super right and had a very good relationship, lately here I’ve noticed I literally have to ignore her for weeks on end to get her to reach out to me anymore. If this has happened on numerous occasions is it even worth remaining friends? I feel like it’s extremely immature. I’ve also noticed this seems to be a pattern with a lot of woman. You give them attention and they distance themselves, you treat them as if they don’t exist, and they all the sudden want your attention. Why is that?
Would love some advice?
Post Opinion