Lawyers will be fine they will work with legislators to make it illegal for AI to practice law. Then, even if the lawyers job is mostly presenting the work of a legal AI, they will still be employed. Other knowledge workers will need to wisen up and do the same.
Edit: same for any profession that requires professional accreditation: lawyers, doctors, cpas, professional engineers, etc.