I am in a similar position as you. My PhD. topic is focused on the same research area as my job in tech company so I can do both together.
If it is not possible I would advise not pursuing PhD. and continue self-learning. The opportunity cost of PhD. is not worth it in my opinion.