yes, these AI content detector tools are using a pattern of content how the content written. so based on that pattern only it shows the Human or AI generated.
but exactly how they are using in the backend technology to detect all these GPT-3, GPT-2, GPT-NEO, GPT-J