I declined these flags, and I fully expected this to become a point of discussion on Meta. Your growing insistence was clearly evident as you continued to flag the same comments repeatedly. I'm not sure what you were hoping to accomplish by so doing, other than annoying the moderators. Mission accomplished.
Let's unpack this one step at a time.
First, you flagged the comments as "no longer needed". I declined those flags for essentially the reason you cite in the question. It was not at all obvious to me why those comments were "no longer needed". They looked relevant, on-topic, helpful, and constructive. They were not requesting a clarification that had since been provided. They did not appear to be referring to an old revision of the question. I scrutinized things pretty carefully, in fact, and, although I am not a regular expressions expert, I did not find any conceivable argument that could be made in favor of deleting those comments. As such, I declined the flags.
Then, you flagged the comments again with a custom flag, explaining your rationale for flagging as "no longer needed". Unfortunately, your basis for flagging these comments as "no longer needed" was incorrect. The fact that a comment could be interpreted as an answer to the question does not justify flagging it as "no longer needed". Comment flags have two possible outcomes: either the flag is declined and the comment is kept, or the flag is marked helpful and the comment is deleted. Deleting a comment that conveys useful information is incredibly stupid and harmful, so I'm not going to do that.
I am strongly opposed to deleting comments because they "should have been posted as an answer". First, that assessment is thoroughly subjective. Obviously the person who posted the comment didn't feel that it was of acceptable quality to be posted as an answer, or they would have done so. If you disagree, then you can post an answer. But that is not a justification for deletion of the comment. Second, even if you could objectively prove that the comment should have been posted as an answer, the fact remains that it wasn't. The fact that you think the comment could/should have been posted as an answer proves that the comment provides a significant amount of value. It is utterly foolish to destroy value by deleting a comment because you think it breaks some kind of rule. That's cutting off one's nose to spite the face.
The argument could be (and, indeed, has been) made that the Help Center says "Comments are not recommended for…[a]nswering a question or providing an alternative solution to an existing answer; instead, post an actual answer (or edit to expand an existing one)." This is absolutely correct. Comments are not recommended for answering a question. However, "not recommended" is altogether different from "should be deleted". In particular, "not recommended" puts the onus of judgment on the user who posts the comment. It doesn't define some kind of "rule" that prohibits posting useful, relevant information as a comment
At the risk of repeating myself, deleting comments because they contain too much information and might therefore be useful to someone is an incredibly stupid notion, and I categorically refuse to practice it.
Now, there is one additional component of your custom flag, and that is the point that you've since posted an answer to the question, thus (arguably) rendering those comments obsolete. I did not agree with that. Again, I am admittedly not a regular expressions expert, but it looked to me like your answer was distinct from the comments posted by Wiktor and Andrea. I looked sufficiently carefully that I would have noticed obviously identical content, but no harder, because those comments were not causing a problem and therefore there was no motivation to delete them. At worst, they were saying essentially the same thing as your answer. At best, they were providing additional useful information, and you were only flagging them because of a myopic interpretation of what you perceived to be a "rule". I did—and will always—err on the side of preservation of useful information.
Finally, there was a third set of flags. At this point, I was quite annoyed. The likelihood that I was going to reverse my decision was essentially zero. It appeared to me that you were just raising additional flags to be annoying. The standard workflow for moderator flags is: (1) you flag, (2) a moderator reviews and acts, if appropriate in their judgment, and (3) there is no step 3. At this point, we'd already gone through a further optional "clarification" step, and still the moderator disagreed that there was any need to take action. There was no point in flagging it again.
Furthermore, there was no way that I could do what you were asking demanding. You didn't quote your third set of flags, so allow me:
Please explain why these flags are being declined rather than just declining silently. "When shouldn't I comment?" from stackoverflow.com/help/privileges/comment specifies this as a valid case
There is no way for moderators to include an explanation for the dispensation of a comment flag. That option only exists for flags on posts (questions or answers). So, even if I wasn't sufficiently annoyed at this point and wanted to provide a detailed explanation, I couldn't do it. I really had no choice but to, once again, decline your flags. Especially because I still didn't want to delete the comments you were flagging, because the situation had not changed since I looked at it ten minutes earlier.
You essentially answer your own question right there in the question, albeit without even realizing it:
So why were these flags declined and the offending comments kept? I don't really care about the declined flags; I am mostly interested in answers not being posted as comments, especially by users who ought to know better.
The flags were declined because you admittedly didn't care about whether or not the comments were useful and relevant: you only cared about attempting to dole out some kind of "justice" by punishing users whom you thought should "know better". Frankly, I felt like you should have known better.
As for the bonus question of why your admonition not to answer in comments was deleted, I have several responses to that.
First, I can use your own logic against you. If there are any "rules" regarding the appropriate use of comments, it's that they should be meaningful and relevant to the question. Yours wasn't; it was merely meta-commentary about another comment.
Second, and more importantly, that comment had already served its purpose: Wiktor had seen and responded to it:

That conversation had run its course, was not going to be helpful to future viewers (unlike the comments you flagged), and was not otherwise relevant to the question. Obsolescence is a standard reason to delete comments. As such, I deleted them.
Furthermore, Wiktor's justification for posting his remark as a comment instead of an answer made perfect sense to me: he had voted to close the question. It's standard practice not to post an answer to questions you are voting to close. When a gentle nudge in the right direction is required to accompany the closure, a comment is an appropriate way to provide that. The fact that you disagreed with Wiktor's vote to close seemed to be what was driving your responses in the comments and your flags. You quickly got condescending, attempting to explain to Wiktor what a "typo" was:

I should have deleted these comments the first time around, but I didn't. Mea culpa. I've now corrected that mistake.