How to ignore: no member named 'mutex' in namespace std

I am using threads and mutex in my project and I am working in WSL Ubuntu 20.04 and cross-compiling to Win32 using the x86_64-w64-mingw32-g+±posix compiler but clangd don’t seem to recognize that I am using pthreads even if I add the flag in .clangd compiler flags. The files are being compiled without a problem and everything is working fine but it’s just annoying seeing those errors in my editor (nvim) and wondering if anyone knows how to solve this issue?

Perhaps you could take a look at troubleshooting page first. If issue continues, feel free to paste the full log here.