Google is on the record saying that AI content is a bad idea when it comes to SEO.
In fact, you should check out the link below.
It is from Search Engine Journal.
Google specifically says through John Mueller that "automatically generated content" is against Google's Webmaster Guidelines.
There are no two ways around this.
Now the key question is if the article is mostly written by humans but assisted by AI.
That's another question altogether, but it's a question definitely worth answering.
ChatGPT is here to stay, and it can be a helpful tool for preliminary research, formatting, outlining, and other writing tasks that used to take a long time.
So as long as a flesh-and-blood human being with a brain still writes the content, you should be fine.
But when it comes to preparatory work or using AI to get the initial data together, I don't see any issues with that.