Cursor shows syntax errors in a Swift project

I browsed the Problems tab, the app shows for example this error:
Cannot find PaymentView in Scope
this error means that the debugger cannot find the struct named: PaymentView
but it actually exists, so Cursor reports false syntax errors, plus the project is very simple and no extensions installed on it.

p.s. I found this issue that looks similar to mine.