The former Scottish first minister has announced she will not seek re-election in 2026.