This is relatively new then. As part of some testing last summer for how to handle a migration from one Drive to another, I generated a folder that had I think 10k files in it. They were all named 1.txt, 75.txt, 8492.txt and their contents matched the filename (i.e. 1, 75, 8492). They never got flagged for me. That was for a Google Workspace account, though, and they were deleted a few days later once I was done with the tests.
I did notice it flagged "1", "1\n", but not "1\r\n". Then, it didn't flag "0", but did flag "0\n". So line endings seem to matter as well, but not in some consistent way.