Php syntax check problem

I was able to install php-mongodb in my docker image, which enables the MongoDB class and previewing my app shows that is works (yay!) However the syntax checker constantly marks it as unrecognized. How can I avoid that?

Can you share a project or snapshot?
FWIW Gitpod runs this extension to provide PHP smartness:

Thanks so much! I’ve attached a screenshot (the repository is private as it has access codes in it) There is the squiggly red line, and there is the preview having accessed mongodb successfully