Invalid character 'S' looking for beginning of value

I have seen issues and resolutions for a similar error where character ‘>’ is the issue. I ran into this issue the other day getting error with character ‘S’

invalid character 'S' looking for beginning of value

I found the issue is that I had a pipeline step defined with a group, however it was the only step in that group:

 pipeline:
   build:
     group: group 1
   other_step:
      ..... no group
   other_step_2:
      .... no group

The part I am unclear on, is where this error message is coming from, as I can’t find it in the drone repo. The message is super unclear/unhelpful and so I’d happily PR to update it once I can identify the source!