The former first minister set up the Alba party in March and had hoped to win a seat at Holyrood.