I ran competitively until 19. I started lifting in the wake of a break up around the same age because I was insecure and thought it would help me with women. To some extent it might have, I remember having visited a friend at his college in the Fall and returning in the Spring all bulked up and there had been girls there during my last visit who were clearly interested in the Spring that hadn't been in the Fall which served as positive reinforcement in a sense, at least based on the my experience of it.
But, and this is a big but, they were sorority party girl types ranging from 18-21 years old. Women like this and at that age are really the only ones who respond to a muscular physique in that way, where it's either "not interested" to "interested". I probably don't need to point out that these women aren't ideal partners, especially if their interest in you is predominantly based on something as superficial as how much muscle you carry on your frame.
I think a better approach is to find a strength training regimen you actually enjoy doing for its own sake. You'd probably land on something closer to an athletic physique (think rugby players or football players circa 1950). If you focus on the vanity side of it for maximum gains, I predict a life of insecurity, strife, and discontentedness. There's a reason fitness "influencers" all reel of psychological dysfunction.
Real relationships with real, quality women are built on much more than physical attraction. I don't think any of the women I've dated in my 30s and on have cared at all about muscle or anything like that beyond just a reasonable regard for health and physical fitness.