I would create rule manually in the UI first and then export rule group in HCL format:
So you will have valid HCL, exactly for your Grafana version and you can use that snippet in your TF.
I would create rule manually in the UI first and then export rule group in HCL format: