If you want this fixed, try to reproduce the issue again in a container or virtual machine. I am sure there was something special in your situation that you did not yet share, perhaps related to previous MySQL/MariaDB installations on the system the new install interacted with or something.
Related: - https://salsa.debian.org/mariadb-team/mariadb-server/-/merge_requests/26 - https://bugs.launchpad.net/ubuntu/+source/mariadb-10.6/+bug/2011293