A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.
1 of 7

Jelly, 50 bytes

œṣ⁾()Fœṣ⁾{}Fœṣ⁾[]Fœṣ⁾<>FµÐL
“(){}[]<>”s2¤ẋ"FŒ!QÇÐḟ

Plain and inefficient.

Try it online!