I wonder if backporting
https://github.com/detekt/detekt/pull/6468 to the 1.x release branch would make sense, as I assume the next detekt minor release (for 1.9.20 support) should be ready soon, and that this minor release will be the 'current' version for quite a while.