Maybe the antivirus is not against the use of Nim, but against GCC. Even a HelloWorld written in C can be reported as a Trojan by Microsoft, if compiled with Mingw.
<https://stackoverflow.com/questions/62364507/compiled-c-executable-is-detected-as-a-virus-by-windows-defender>