[This](https://github.com/metabase/metabase/pull/27558) PR fixes the issue. Should refactor after the release. It will be part of the 0.46 release.