Is it true that during WW2 the Soviet authorities enforced collective punishment on certain minority ethnic groups due to collaboration with Nazis? (Specifically Crimean Tatars) I’ve heard about this from leftist circles and from reactionary circles. The claim, at least on surface level, seems pretty damming.

If this happened, then why? And was it a mistake or was it a necessary evil?