Manually modifying PATH in the MSYS2 terminal is almost always wrong. Just use the correct shortcut (
MSYS2 UCRT64
in your case) and it will add that directory to path for you, and more.