Welp, this will happen.
Here's the reason, and it sucks, no defending it:
They probably have a lot of candidates in the pipe, all of which look really good.
If they are only hiring X engineers right now, and you are the only one who didn't answer this question in the way they wanted, they'll pass.
Don't take it too hard.
I am really amazed you got this feedback – is this the actual feedback given by the company? That's really solid, you should take it and use that in your next interviews.
I find it much more frustrating when I have a good interview, and then I get an HR person saying "we don't provide any feedback, <canned message>".
Also, if you are scarred from past experiences, even if it's true, it's best not to make that a prominent part of your interview unless specifically asked about it.
It's likely that the way the dev phrased their question invited a broader interpretation, which is too bad, but it will be a red flag to people if it seems like you are harboring a grudge with a past employer, no matter how justified.
Get out there and apply to shitloads of other companies, you'll find something, and you'll be better off for it when you get an offer from a company that wants to work with you.
edit: I say this as a person who harbors a grudge over a past position, and struggle to avoid making it part of my origin story :)