Magit, sqlite3, and Emacs

I’m using Emacs 28 (emacs28-gtk3) and upon launching magit, I’m greeted with this message:

[1]: Supported since Emacs 29.1, provided it was not disabled
     with `--without-sqlite3'.
[2]: https://github.com/pekingduck/emacs-sqlite3-api
[3]: On Debian https://packages.debian.org/buster/libsqlite3-0 Disable showing Disable logging

I tried solution 3 by installing pkgs.sqlite, but still, the message is shown. Moving to Emacs 29.1 is not a solution because it has problems with lsp-mode in Go.