The long-serving MSP has announced he will not seek re-election.