cmake 3.28 CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS-NOTFOUND: not found

I would guess that clang-tidy lives in the same package as clang-scan-deps.

clangd doesn’t know how to build modules yet. You’ll need to have CMake build the modules before clangd will understand them.