Mac OS Catalina: sqlite v.3.39.2 but HA still claims 3.28

I am running and upgrading HA on a Mac Mini since 5 years, but now
I am unable to upgrade from HA 2022.5.5 as HA as of 2022.6 claims that I still have sqlite
v.3.28. 3.28 is the default version of sqlite3 distributed in Catalina.

I have (successfully!) installed 3.39.2 (using home-brew), verified by checking the vision by “sqlite3 --version”, and it comes back as 3.39.2. both .bash and .zhsrc correctly points to the path where sqlite3 v.3.39.2 resides.

Nowhere on the internet have I found any information of how to rectify this.