The broken code line find_package(Python3 COMPONENTS Interpreter Development)
comes literally from the CMake docs, https://cmake.org/cmake/help/v3.22/module/FindPython3.html. So I reported the inconsistency also at https://gitlab.kitware.com/cmake/cmake/-/issues/22983. - Joachim