A ctypes patch was added to the Python easyblock in easybuilders/easybuild-easyblocks#3860. This feature was first included in EB 5.2.0, but we've built Python 3.13.5 with EB 5.1.2. Also, the easyconfig for Python 3.13.5 didn't have a patch_ctypes_ld_library_path parameter, this is fixed in easybuilders/easybuild-easyconfigs#25106.
Because of this, we need to rebuild Python 3.13.5. Version 3.13.1 is fine, because it was explicitly (re)built with a commit: #1254.