How do I stop being desperate over a man?

I’m desperate over my husband. We’ve been married for a few years and I feel like I’m way too clingy even I recognize it. It’s like I can’t get enough of him but I feel like if I continue this I’ll lose him. How can I regain my independence and become attractive again? At this point he finds ways to get away from me. It’s so embarrassing idk how to stop. I want him to want me as much as I want him but I think I’m doing it all wrong.