My anecdote is obviously a small sample size but maybe a more recent sample for reference at least (graduated in the 2020s) :
Graduated from a university in a pretty hard red state. STEM major students--whether engineering, a science, statistics, mathematics, were mostly split politically according to sex and race as current society is split. White women and non-Whites were on the left. White men were on the right.