Can logseq create a rule to allow endnote reference numbers to exist in markdown text without creating a new page?

I use endnote for writing grants and manuscripts. Its reference number looks like this → {Fouad, 2023 #11726} - Currently, I am removing the hash tag manually while working in Logseq to prevent a new page being generated. Is there a way to write code that will tell Logseq to ignore the hash tag when it is in between these brackets { }? I think obsidian wrote code that allows Endnote reference numbers exist in the markdown text without acting on the hash tag as an instruction.