Just sharing an article on job security for software engineering and this also applies to energy (which is becoming a major demand for software engineers/ data scientists).
Many people say that with AI there will be no need for software engineers in the future, including software engineering in energy, finance, etc.
According to official sources, companies are actually increasing demand for software engineering, including energy.
"Companies are expanding their software budgets and increasing engineer headcounts, a Bank of America survey found. The long-term outlook for the job appears strong, too. Software developer employment will grow 15% by 2034, the Bureau of Labor Statistics projects."
"IBM, for example, is tripling entry-level hiring in the United States, including software developers."
Source: