This is generally well handled.
https://apnews.com/article/science-norway-europe-oslo-crime-...
> While the maximum prison sentence in Norway is 21 years, the law was amended in 2002 so that, in rare cases, sentences can be extended indefinitely in five-year increments if someone is still considered a danger to the public.