Well I’m sorry to say I have no idea why it works now, but slowly rebuilt the yaml in an online linter, and it worked.
If someone else comes across this try checking the syntax, even though it looked the same, maybe some invisible char was messing it up.