В интернетах пишут что ST-Link непричём. To fix the "mfc140.dll
missing" or "mfc140u.dll was not found" error on Windows 11,
install or repair the Microsoft Visual C++ 2015–2022
Redistributable (x64 and x86) from the official Microsoft site https://www.google.com/search