Notes has tags, and they work the way you would guess from social media. Type a hash sign and a word, and that word becomes a tag.
In a note, type # followed by a word, for example #recipes. Suggestions appear once you have used tags in Notes or Reminders. Your tags then show up in a Tags section at the bottom of the sidebar.
Click a tag in the sidebar to show only notes with that tag. Click several tags to narrow it down, and choose whether notes must match all of them or any of them. Click a selected tag again to drop it from the filter.
To rename a tag, Control-click it in the sidebar and choose Rename Tag. The new name applies in every note and Smart Folder that uses it, and renaming to a name that already exists merges the two. Delete Tag in the same menu removes the tag everywhere. If you want to keep the word in the text, Control-click the tag inside the note and choose Convert to Text instead.
The caveat is that a tag is a single word. Spaces are not allowed, so use a hyphen or underscore, like #to-read. In shared notes, a tag looks dimmed to participants who do not have it, and converting it to text changes the note for everyone.
Further reading: Use tags in Notes on Mac