I found out that `stack` has its separate `msys2` which is not visible by `cabal`.
I installed `openblas` in msys2 here `C:\ghcup\msys64` as described and it is working now.
Another important point is that `openblas` flage should be used: `cabal run -f openblas`.