fix(define): fix match escaped dots to support $-prefixed define keys (#23249)