John Swinney apologised for the Scottish National Party social media video featuring artificial intelligence generated imagery of Margaret Thatcher…