The former first minister was cleared of breaching the ethics code in 2021 following the botched investigation into Alex Salmond.