In a study recently published in the journal Patterns, researchers demonstrate that computer algorithms often used to identify AI-generated text frequently falsely label articles written by non-native language speakers as being created by artificial intelligence. The researchers warn that the unreliable performance of these AI text-detection programs could adversely affect many individuals, including students and job applicants.
Sorry I might have overly generalised based on my personal experience. I have been a non-native English speaker for over 30 years, and I keep making grammatical mistakes.
Everyone is different and it depends heavily on how the person learned/acquired the language.