I'm not that much older (turned 40 recently), but my happiness in life comes from:
* Having an amazing partner who is kind, supportive, trustworthy and fun to be around. We don't have kids but raise a cat together.
* Having hobbies outside of work that intrinsically motivate me and bring joy. For me this is muay thai (kickboxing), bicycling, hiking, camping, kayaking, board games, singing, and trivia. Some of it I do alone, others I do with friends, but they bring relief through the week and give me something to look forward to after work.
* Working in small to medium-sized values-aligned organizations. For me this is the environmental & renewables field; for you it could be something entirely different. But it makes SO much difference to go to work in a place where people are passionate about the job because they believe in the cause, not just to pick up a paycheck.
* Working in an office environment and getting to know your coworkers. This isn't for everyone, obviously, especially if you're an introverted remote worker. But it's made a HUGE difference in quality of life for me and I wouldn't choose to work fully remote even if I could. (I actually have a remote job right now, but I don't like that part of it... wish I could meet the team in person).
* In general, treating people well, balancing their needs with yours respectfully but honestly. Little extra doses of kindness go a long way. As a result I have some close friends and many acquaintances whom I enjoy spending time with, whether it's coding together or playing a game or grabbing a beer.
* I've been programming for like more than 30 years (started as a kid) but that was never really my passion in and of itself, just a means to an end (a paycheck, yes, but also the ability to support causes I care about). It's just a thing that I do, not the thing that defines me, and so my happiness doesn't have to depend on it. I'm not even a very good programmer, just an average one who can communicate with clients & teams well.
* Trying new things every so often. That could be traveling to a new place, learning about a new culture (whether abroad or domestically, like one of the subcultures around you), learning new non-tech skills (makerspaces and meetups are great for this), taking classes at community colleges, watching documentaries, reading books, etc.
* Forget regrets. Learn from your mistakes and choose better paths, sure, but don't dwell on would've-could'ves. After a while, your life becomes full enough you won't even have the mental capacity to remember the regrets, much less the time to sulk about them.
In general, anything EXCEPT chasing riches. I think the traditional "American Dream" is kinda nightmarish and can lead to unbalanced lives and fragmented communities. It's better, IMO, to make just enough money to sustain your needs and spend the rest of your time and energy with the people, activities, and places that you love. If you don't have those in your life, find them! You have to cultivate hobbies/passions and relationships both; they don't just magically appear out of nowhere.