I used this string to find an element:
cy.xpath('//*[text()="search ${keyword}")]')
And when I run my test, it shows me the right result in console but also it shows me this error:
Failed to execute 'evaluate' on 'Document': The string
'//*[text()="search ${keyword}")]'
is not a valid XPath expression.