If salaries are competitive in the Midwest, then move there ... go for it.
I grew up in the Midwest and had second-thoughts about Silicon Valley after moving here decades ago.
I did a little thought experiment though and saw that, despite the cost of the real-estate, when it came time to retire, I could sell my over-priced house and move more or less anywhere I want to in the U.S.. While if I took a smaller salary in Kansas, I could have comfortably purchased a house there too but when it came time to retire....