As people in tech we live very expensive lives but if you are in a major city and own your own home and have worked for a decade or more you probably have a lot more opportunity to retire today than you might think. Even with children, life can be much less expensive by moving to a low cost of living area. Often in online discussions about FIRE (Financial Independence, Retire Early) high income people will discuss needing many millions to retire, but you can retire on less.
Switching industries is a romantic idea but it is very difficult, especially going from the tech world with big money to the normal world with small money. You can still work to keep yourself busy but thinking about it as retirement will better help you plan. Going part time in tech is usually more sustainable than trying to switch industries.
A good place to start is thinking about what you want from life without work. Where do you want to be? Where does your partner and your kids want to be? What do they want out of life? From there you can assess the financial needs and plan accordingly.