Swap \. with [.] to match dot literals.