Everything potentially affected by https://github.com/mingw-w64/mingw-w64/commit/22f9ed9987e1a473e0 So ever package the was built against 12.0.0.r619.g850703ae4-1 and contains static libraries.
The patches for this package are auto generated and managed in git: https://github.com/msys2-contrib/cpython-mingw
Run ./update-patches.sh to re-create the patches.