I managed to find the issue. root cmake detects python 3.13 but all packages are installed for python 3.12, which yields zmq cython compilation errors.
importing zmq from python3.13 did not work, and threw the same error. uninstalling python3.13 and rebuilding worked