I am working on an automation project using Cucumber.js, but in my page object files, all of my getter functions that use xpath 2.0 selectors are throwing me the error "unexpected token". After clearing all of the inspections, I am still running into this issue, and there seems to be no way for me to get rid them. Here is an image a more detailed description. The errors that are being throw are only syntax errors, they do not cause me any issues during run time.
Any help is appreciated, thanks in advance!