PubMed searches for phrases in its Phrase Index. To search the Phrase Index add quotation marks on either side of the phrase. If the phrase does not appear in the Index, then it searches your phrase as if you had typed it without the quotation marks.
To search for a phrase...
e.g.
National Library of Medicine. “Searching for a Phrase.” PubMed User Guide, National Library of Medicine, 2024, https://pubmed.ncbi.nlm.nih.gov/help/#searching-for-a-phrase.
This is a screen capture of the PubMed Advanced Search Builder page for the example search.
The search with quotes found 14,035 fewer results and is more focused.