my $pattern = qr{HOSTNAME:\s*(?:\d{4}-)?\Q$hostname_for_regex\E(grbr-rwan-x)\s+GRBR:\s*\Q$dev_ref->{grbr}\E}ixms;