The former match for a section header included hosts that began with a range. (#17225)
The former match for a section header included hosts that began with a range. (#17225)

Checking that the line ends with "]" narrows that window somewhat,

Fixes #15331
thaim/ansible,thaim/ansible