[build] use named groups in regex