Oh, wow. I don’t know why I didn’t think of this before. The rules.yml file contained a bullet “•” character. I replaced this with a dash, and the error message is gone.
I’ll leave this thread here for anyone who gets a similar error message in the future.