Mysql dependency error with MariaDB and Debian 12

So it seems this might be related to MariaDB incorrectly reporting the compatible mysql version info, as noted in this thread below, but I don’t understand what the fix or workaround would be. Do I need to install a specific version of MariaDB for the dependency check to succeed?