If you’re going because you think it’ll give you better work opportunities later, I suggest thinking carefully about that. You’re already in your field. Even if you’re in an adjacent field but still in tech, you can usually transition — I’ve been a gamedev, worked in finance, been a pentester, and now I do ML. The question of whether I had a degree came up exactly once, very early in my career.
Academia can be a good fit if you’re going for the right reasons. Make sure you research what life is like at that university, and plan out what you hope to get from it and where you want to be five years from now.