How to exclude some words from tag creation?

Hi. Typically, a word starting with # becomes a tag. Is there way of creating a tag for some words?
For instance, #if, #endif, … and so on. I am using logseq to view a c++ program in a graph by using a function or a class as a page. Some specific statement with #if keeps creating a new page, which is shown as a node in a graph view unlike my intention. :wink Thanks.

by putting the code in a fenced code block

or use inline code syntax if it’s just one line of code