LLDB's Python bits are declared to be compatible with 3.8 and later, using the CPython limited API to enforce this at the C level. However, the limited API is meant for system environments where only one Python interpreter/distribution is present at a time, and Python shebangs are not specific to a particular implementation. It is also to allow upstream to distribute "universal" binaries. We (FreeBSD) always shebang Python to the specific version/distribution/implementation especially since we allow multiple present at a time, plus our DEFAULT_VERSIONS framework, so the limited API becomes superfluous.
This is also needed to allow building with free-threaded Python, ie 3.13t (soon 3.14t and 3.15t), which is currently not compatible with the limited API. I've gotten another fix addressing a different build error merged upstream to this effect.