I don't want to say you did the wrong thing. Do what you want and explore the world as long you're young. But always have a plan B for the short term. And always have a plan B to argument on questions like "why did you take so long time to finish your studies?". Answers like "I realized a project i needed could be helpful for others" aren't enough and can be understood like "there's a lack of focus and aim-persue".
I believe in you'll find your way!