What happened?
In multi-line flow scalars (ie strings), subsequent lines which start with the vertical bar | are highlighted as invalid (white on red, in my theme), while actually being valid YAML syntax.
.docker-image:build:
script:
- imageTag="$(echo "$CI_COMMIT_TAG"
| grep -Eo '\d+\.\d+\.\d+(-?(a(lpha)?|b(eta)?|rc)\.?\d+)?$'
|| echo "$CI_COMMIT_REF_SLUG")"
