I don’t believe this qualifies as an ad hominem. The person was not attacking the individual but rather making an observation about the dynamics of ideological thinking.
The ad hominem is assuming that the person suffers from mindless ideological thinking, and that they're parroting something they heard instead of using their brain. To paraphrase, "yeah well you're just a dumb ideologue...aren't they fascinating?".