I have had similar issues (A curious bug(?) in VS Code / Symbolic Regression). This happens only in VSCode, not when running Julia in a terminal.
I logged an issue under the VSCode add-in, but the devs could not replicate, which leads me to suspect that there is a configuration issue at play. For what it is worth, I can replicate this on both my machines and a colleague’s work laptop as well.