Peppermint contains gum Arabic, which makes the surface tension of water molecules more easily broken, and makes cola release more carbon dioxide at an alarming rate, so it can spray so high.
A large amount of carbon dioxide gas is dissolved in carbonated drinks and beer, and these gases remain in equilibrium at rest. When external substances or external forces act, the original balance is broken, and carbon dioxide gas in drinks will come out. This is the principle that coke and beer that have been shaken violently can come out with a lot of bubbles. Generally, the release of carbon dioxide gas in cola and beer is relatively slow, and some components of some mints catalyze the accelerated release of carbon dioxide gas in beverages, causing the beverage to spew.