Hello. Can you change your post category Questions?
You didn’t provide a minimal reproducible example, as it doesn’t even compile (https://sscce.org/). By default, there is no space after figure numbering.
#figure[] <fig1>
Here texts @fig1.
Also, for plain text you can use txt/text/plain/plaintext language identifier to prevent any default syntax highlighting.