Here is the Scottish Government's guidance on flag flying.
www.gov.scot/publications/scottish-government-flag-flying-guidance-2022/
The only flags that should be flown from SG buildings in Scotland are the:
Saltire
Royal Standard at St Andrew's House only (by Special Command or Royal Assent)
Union flag
Rainbow flag
Commonwealth flag (Commonwealth Day only)
European flag
Autistic Pride Day flag (Autistic Pride Day only) from St Andrew's House only
Armed Forces Day flag (Armed Forces Day only)
Red Ensign (Merchant Navy Day only)
Transgender flag on Transgender Remembrance Day
World AIDS Day flag (World AIDS Day only)
Other flags should not normally be flown from Scottish Government buildings.