The source code will still be available, the GPL2 still applies. As far as I understand, RedHat will publish the upstream code that will eventually end up in RHEL. This article can explain it better than I can: https://www.theregister.com/2023/06/23/red_hat_centos_move/
Here is a non paywalled link: https://archive.is/fELsN
AI written scripts will just repackage old ideas. Nothing new or innovative.