Less than two years ago, Ash Regan was bidding to become SNP leader and first minister of Scotland.