It’s not that simple.
That would result in a brittle solution and/or cat and mouse game.
The text that goes into a prompt is vast when you consider common web and document searches are.
It’s going to be a long road to good security requiring multiple levels of defense and ongoing solutions.