The Scottish Government says it ‘must learn from past mistakes’ over the coronavirus pandemic.