I was always interested in IT, but studied business instead because my parents thought IT would be too stressful.
Ended up programming a distributed simulation optimization tool for my master thesis (in business), while already doing multiple online startups.
Do I regret not studying CS and following a SWE career? I really don't know because many skills from the business side have served me well too. Would I have started those companies without understanding customers, marketing, accounting, taxation, investing?
So I try not to regret things because I don't know the alternate timeline. Could be better, could be worse.