You can !include something.yaml files in automations and scripts outside of automations.yaml or scripts.yaml, but you can’t in the UI.
Closing as a duplicate of: WTH The ability to use include in automation/Script UI
Please search this category before posting.