It certainly can be: most of the OS is open source, and the stuff that is not (i.e. the vendor provided binary blobs) is listed in the code, usually in a file called proprietary-files.txt. So it would clearly be possible to make a build without the AI code. Whether anyone can be bothered, given that - once the promised change has been made (if it hasnlt already been) - the AI feature is off by default, is anothe rquestion entirely. But nothing stopping you from doing it yourself.
But in your other post you said
That is much harder to do when you are running Android, which is of course a Google product. Your bets bet is to install a LInux-based OS (SailfishOS, POstmarketOS) and live with the limitations of those non-Google OSs. Good luck!