People who say "keep politics out of" anything are usually stupid. Most things are political. Implicitly supporting the status quo is political. Leaving things unsaid is political.
Usually the people who pop out that line mean "keep politics that are different than mine out of".
But on topic, punk is extremely political. For example, please review these lyrics from The Clash "Know Your Rights", 1982
You have the right not to be killed
Murder Is a crime!
Unless it was done
By a policeman or an aristocrat
A few years ago when Trump was still in office my wife and I went to see Roger Waters in Tulsa, Oklahoma. We had 7th row seats that cost a few hundred apiece, but we had looked at getting seats in rows 1-3 but passed because they were $1,600.00 each.
Well come the night and Roger is putting on a fabulous show, but Jesus Christ he is laying into Trump hard the whole time with anti-trump videos running and pig drones flying around the room. It was awesome, you can find most of the show on YouTube if you're interested.
Well six or eight cowboys in the first row walked out of the show, flipping off Roger Waters as they did so, yelling MAGA shit and screaming about what a dumbass Waters is and how he should keep politics out of his music...
Everyone is laughing their asses off because God DAMN, have you never read the lyrics to Pink Floyd songs? I mean, what the holy fuck.
I mean, it's possible to like bands but not buy into their ideologies. I love Propagandhi but don't agree with all of their positions. Pretending that they don't have those positions so you never have to interrogate your own positions is the essence of being a poser though.
The funny thing about art is that people can interpret it however they want, even in the most stupid ways. See the many idiots that thought/think Rage Against the Machine and Pink Floyd weren't political.
Maybe I’m wrong, but I’ve always looked at punk (the music, not the ideology) as a thing that was, not is. Similar to classic rock. As in… there are no new classic rock bands. No one says, “hey. I’m forming a classic rock back and we’re writing all new material!”
Punk was The Ramones, The Dammed, The Sex Pistols. Black Flag, The Clash, Dead Kennedys, etc.
Just like how classic rock was Led Zeppelin, Pink Floyd, BOC, Rolling Stones, The Beatles, etc.
Again, many will probably disagree, but this is simply an opinion on the matter.