When i try to open the .exe file from the Gtk4 build i get the above error
The procedure entry point hb_ot_color_glyph_has_paint could not be
located in the dynamic link library
CAmsys64\mingw64\bin\liopango-1.0-0.dll
The build was finished successfully in vs code Build Task
I have installed all the gtk dependencies from msys2 Gtk4 base devel tools
I also have the libpango file specified in the error installed I also deleted and reinstalled it again but the error still persists
Please give your input and suggestions

Probably there are programs in your systems that uses older version of pango library and their bin folders are in PATH. You can try to run console and set path to e.g. C: with:
and then run you program in the same console. If this helps, you are on the right way and just need to find which directory in PATH causes this error.
For me these poblem-causing programs with older libraries were xmlsec1 and graphviz.