Furthermore, I think I'm blinded by the fear of AI replacing/assisting a large majority of the industry by the time I'm an experienced professional, and that my years of study in the wrong direction could be somewhat redundant. I'm certain there's no wrong answer as long as you're passionate, but I can't figure out what I'm passionate for.
I know this feels like a newbie question, and I don't want you to tell me that security or cloud is the way to go. I just want to know a bit about why you thought your specialisation was the best choice out of thousands. Folks in my position that love tech and business, what clicked?
Of course, you could develop foundational IT knowledge: at least one programming language, an OS, a framework or two. But the key to long term success is becoming wickedly knowledgeable about some problem domain, e.g. biotech, some niche in finance, supply chain, medical analysis automation, etc.
Once you establish core competence in the domain of your choice, your future IT learning will be directed by the needs of the problems you are solving.
So, I started out as IT Helpdesk. Then life took me to systems administration. Then I got 'promoted' to 'site administration' (everything tech related in a food factory - even the machine that made the food - a train-wagon-sized machine that run German Win95 (that was back in the early 00's), networking, telephony, the whole thing.
Later I switched to Internal (IT) Audit (that is a good paying job)(including SOX). Then that took me to IT Security and (IT) Project Management. Then got an IT GRC gig that required IT, IT Audit, SOX, and Proj.Mgmg. There was always a Privacy thing in whatever I was doing so I later gave Data Protection a try, and it worked/is working out well.
So.. I like what the CEO of Spotify said on the DOAC podcast about "T-shaped" skills. You are TOOOOO YOUNG to get married to a specific job.
Keep an open mind, let it take you where it takes you. Sometimes a smarter/wiser/older person may see something in you that you haven't realized, and that will make you jump 'diagonally upwards' (not vertically in the hierarchy ladder and not horizontally in the same grade but in a similar role).
If you would have asked me at 23 "do you imagine having worked in 'these' companies, traveled in 'those' countries, and make 'that' money by your 30/40/50 I would have said that you're crazy. But life is crazy so embrace it, keep an open mind, keep an open eye, and be kind to others.
Why did I pick my specialty? Because people repeatedly told me I was good at it. And the experts said it was in demand.
I knew it was in demand by following the money. I simply looked at the revenues of the software companies in that specialty. Most of them were not sexy but people were literally screaming take my money.
As I grew up and learned more about the field, I figured it's not necessarily video games that I want to make, but definitely software science.
I ended up in electronic engineering because I was curious about how computers work at a low level. After that I ended up in ML/DL/data science because it looked cool and wasn't that hard to understand for me as I had all the math prerequisites from the EE degree.
In conclusion, I would say that, for me at least, the path came quite naturally, and every step I took in my career made sense at the time. I never tried to really force a long-term plan on my career, so whenever a move or a change felt natural for what I wanted, I made it. I would say I'm pretty happy with what I'm doing now, so at least it worked for me.
Choose whatever you like doing the most (the process itself), or at least hate doing the least.
Trying to guess the most profitable or less "ai-scary" niche is a 100% road to eventual frustration.
Don't listen to those toxic people scaring you with "paying the bills", while you're wihin the IT realm (and not playing ukulele for living) — you will not end up on the street as long as you're really good at something (anything).
And the only way to become good - is to enjoy it, because it takes time, willpower alone is a very limited resource.
By making money - but I'm not a capitalist. When I was 12 years old I made a website about Dragon Ball Z and it became a hit and checks started to come to my house (ads but it was before google ads be a thing). I got passionate about coding after creating something out of nothing but nights of work and turn that into a revenue stream.