In most of the organizations I've worked for you reach a salary cap as an engineer. The only way to make more is to become a manager where you get paid more simply because you're part of the group deciding how much people get paid. The other career path I've seen is the architect route where a skilled developer no longer codes but instead spends their time helping others design good software.
both of those routes is boring - which route involve working in "the trenches", whilst still getting paid management level salaries? Don't say startup because that's just money earned on risk-taking, not guaranteed payment like a salary.
The engineering track at AmaGooBookSoft. You'll earn +/- $200k a year mid-career and have roughly zero market or execution risk.
There exist many options if you're willing to take more than a W-2 employee level of risk. (e.g. Found a boutique consultancy. Redirect the conversation when your W-2 friends ask what your weekly rate is.)