Changed regex to remove capturing group, escaped special characters and returning hash instead of string
Used interpolation in string