Matthew 16:18
And I say to thee: That thou art Peter; and upon this rock I will build my church, and the gates of hell shall not prevail against it. (Douay-Rheims)
Some commentary regarding the "gates of hell" drawn from Councils, Popes, and Saints:
"Wisdom may fill the hearts of the faithful, and put to silence the dread folly of heretics, fittingly referred to as the gates of Hell." (St. Thomas Aquinas)
"we bear in mind what was promised about the holy Church and Him who said the gates of Hell will not prevail against it (by these we understand the death-dealing tongues of heretics)... (Second Council of Constantinople—Sentence Against the "Three Chapters")
"The holy Church built upon a rock, that is Christ, and upon Peter… because by the gates of Hell, that is, by the disputations of heretics which lead the vain to destruction, it would never be overcome." (Pope St. Leo IX)
"So when S. Peter was placed as foundation of the Church, and the Church was certified that the gates of hell should not prevail against it, — was it not enough to say that S. Peter, as foundation-stone of the ecclesiastical government and administration, could not be crushed and broken by infidelity or error, which is the principal gate of hell?" (St. Francis de Sales)
Question: From a Catholic perspective, it seems that the gates of hell pertain to erroneous teachings (i.e., heresies). If one goes as far back as possible to the original Greek, might there be a way to connect the original (Greek) words used to denote "the gates of hell" to the notion of heresies?
Remark: I vaguely recall reading something along these lines a while back but I can't remember where. Perhaps a Catholic theologian may be able to point me in the right direction—or at least in a direction where I can better understand the connection between "gates of hell" and heresies from a Catholic perspective.