Dynamic Syntax Checking not working in some files

I am using uVision V5.31 and have noticed that in some source files Dynamic Syntax Checking is not working (even though enabled).  I have narrowed it down to the inclusion of mbedTLS header files. Dynamic Syntax Checking works up to the point these headers are included (e.g. changing #include to #includeeee will show a red X before including the mbedTLS header files, but not after).

Anybody have a solution for this.