This is not mentioned in the upgrade docs explicitly:
During the preparation for upgrading I found that our custom themes plugin did not build anymore.
This is due to the change to dart-sass.
By looking at the changes to the cern themes, I found the following changed fixed that:
Change all
@import 'base/....';
to
@use 'base/....' as *;