I had the same issue, i had to add this line to configuration.yml:
script: !include scripts.yaml
i found this thread Scripts not saving - #24 by WallyR where the same problem was discussed. Like there i had hacs installed, but i removed it again.
I do have
default_config:
at the top of my configuration.yml. this should setup the system for scripts: Default Config - Home Assistant