Not Scottish but Swiss. The Swiss Guards heroically defended the palace to the last man.
In “Quentin Durward” there is no doubt that they are the Scottish Guards. Maybe later they changed to Swiss. I just don’t know but Scott invented the historical novel and always had the history accurate.