And this is a known bug in Python 3.11.X and later. The async windows_events.py file imports the _overlapped module which has the following bug report about it:
https://github.com/python/cpython/issues/131131
I can not tell if this will ever be fixed based on the discussion as cpython people keep pointing toward other module authors.
So we were best off removing all use of pdb until asyncio and/or _overlapped are fixed if ever. Not even a loopback socket can be opened / works when Windows is in Safe mode, so the asyncio code uses loops that use loopback sockets and they will not work.