A solicitor employed by Sydney gangland lawyer and pro-boxer Ahmed Dib has been lashed for the suspected use of artificial intelligence in court documents.