How to locate an element by Xpath/CSS selectors using Playwright

How to locate an element by Xpath/CSS selectors using Playwright TS/JS?

There are many locators in Playwright (in comparison to Selenium)
such as getByRole and getByText.

Is there any locator like getByCssSelector or getByXpath?