Was your whole plan about having a family in your 20s? If not, then I don’t see how the lack of a significant other matters. What career plans do you have? What interests do you have? Also, keep in mind that validation should come from within, you shouldn’t let anyone (or their absence) define how you feel about yourself.
The first time I heard about programming being obsolete was when I was taught UML in university. That was over almost 15 years ago and it didn’t happen, if anything programmers now also had to know UML, which isn’t all that bad but it definitely didn’t replace anything, it’s just useful for designing and documenting projects.
I also heard from colleagues that in the 80s and 90s people said that SQL was supposed to be used by users directly, making (some) programming obsolete.
Now AI bullshit claims to be making programming obsolete. I won’t hold my breath.