The job of a freelance writer is forever depending upon how well he adjusts to the situation. Find another niche to fill. There will always be a market for human writers, no matter how small. If there is none, then create one for yourself.
Most students and computer coding companies may prefer to use AI in the future, with minimal human intervention due to the speed and accuracy by which the AI produces content. The writer might be used for testing and program adjustments, in the case of coding.
Meanwhile, students would prefer to save their allowances by editing the AI generated paper to make it sound more like them by including relevant citations and text before passing it on for grading. They can also better avoid blackmail from writing companies and independent writers by using an AI. ChatGPT is a living and learning program that will eventually spew more human like text as it learns from its users. That will help students tremendously with their written homework for as long as the outdated form of intelligence assessment is used by the educational system.
In both scenarios, the AI user is in control and no longer in need of outsourcing the jobs to other people / writers. Therefore, the job of a freelance writer in academic and coding fields face a bleak future. That is my opinion only. Of course others could see it otherwise.
The opinions are that of the author's alone based on an individual capacity. Opinions are provided "as is" and are not error-free.