Not OP but same experience. If you're not overly concerned about a certain quality of life, number of cars, square footage of house, etc., then there's nothing to think about. Engineering is a fine career (granted, AI takeover notwithstanding) and a few-year gap isn't going to leave you on the street. Being a few years behind your peers in your 30's may gnaw at you a bit, but by your 40's things will have reasonably equalized. My "wealthier" friends have some nicer things, go on more lavish vacations, but it's never really bothered us. And they generally got that way because they're type-A personalities to begin with. So they're not the type of people who would even ask the question about taking time off. Maybe one downside is they can also afford private schools and tutors etc for their kids, though, IDK, we
could afford to do the same (though it would be more than a blip in our finances), but they seem to be doing well and happy where they are.
So I think if you're the type of person that's even asking about it, then just do it.
[*] I'd say one caveat is, don't go broke doing so; save/invest enough and live cheaply enough that you're coming close to break-even. The other is, have a decent network so that when you want to re-enter the job market, you'll have people to contact. That makes job hunting an OOM easier.