Scotland’s former first minister confirmed news in a social media post