Thinking of changing careers! A little background: I am a senior software engineer with over 14 years of experience. I will turn 30 soon. I live in the UK but I'm neither a British citizen nor from EU member country. BSc in software engineering (abroad) and MSc in Advanced Computer Science (UK).

If I decide to pursue a career as a pilot, would I be eligible?

I'm not just asking this randomly, I genuinely want to know and seriously thinking of it. Aviation's been my dream for so long now I can't even remember the beginning of it. Not studying to become a pilot has been my biggest regret so far, and feels like this is one of those last moments I can do something about it. Not counting the satisfaction I can't get from my industry anymore - been doing this for some time now!

I hope this type of question is not against the rules of this community, but I don't know where else I can this. Also, if you were in my position, would you risk everything and do it?
Your previous education does not matter that much, it's way more about your suitability for the extremely demanding job of professional pilot. 

You can enter a range of differing training paths that lead, should you successfully complete the hard training, to an atp licence.

The ones that offer some kind of promise of getting hired, have rigorous selection processes.

Any training towards professional pilot license is ridiculously expensive, you'll have to consider that. It'll be years before it pays back financially.

Only you can be the judge of whether or not to pursue this, but a word of advice, if I may: it's a job, just like any else. It's really about how well you fit the job and vice versa. If you must become a pilot, you will.