What educational path is safe to invest in right now?

What kind of job will be in high demand in a few years and will remain in demand for at least 20 years?

I'd offer learning skills, personal finance and other life skills, (more or less public) speaking, potentially languages and (modest) mathematics as some examples of skills that will probably be useful for any foreseeable future including most dystopias. Particularly they are things that many 17 year olds will be lacking.