This sounds a lot like where I was around year ten in my career... I made a move into a niche area of technology consulting. That led to a whole lot of variety - I did pre-sales engineering, sold services, did a whole lot of high-profile consulting work, etc. Point being - if you are still enjoying technology but not the specific work you are doing or the company in which you are doing it, find a horizontal move into…
What kind of role did you have when you switched to real estate? I have actually been thinking about becoming an agent since you can make decent money and the licensing process seems rather simple for what it is. I have been interested in software sales as well but that seems like it could be hard to break into as an engineer.
I was freelancing when I made the move to real estate, so in that regard I was already comfortable in a self-employed role. Many people in tech (myself included) are excessively introverted. If this describes you, you'll want to consider how you feel about a career move where lots of contact with the general public is necessary, and how you'll cope with that for yourself.
Yes, the licensing is straightforward - I'm licensed in two states and am considering getting my license in a third. That said, it's a lot like how we talk about the 10x engineer in software - there's a huge gap between having a license and actually being a skilled professional. The average US agent makes something like $60K a year, whereas the top earners (and of course market matters...) make many multiples of that. Real estate is not a monolith - there are many different directions you can take a career. If you aren't comfortable with being an entrepreneur / self-employed person, you'll have a harder time of it.
Again, happy to talk more about licensing, how to choose a brokerage, finding your niche, etc. Likewise, if you go down that path I'm happy to introduce you to mentors, contacts, etc where possible.