In the German state of Bavaria, dozens of people are in 'preventive detention' because they might otherwise engage in climate protests, specifically around the car industry exposition IAA in Munich.
Apparently possible for a month there...
https://www.zeit.de/gesellschaft/zeitgeschehen/2023-09/letzte-generation-bayern-praeventivhaft-gewahrsam
Fun Fact: half of the US thinks this is a great way to manage things