code: func (pf *pfdns) addDetectionMechanismsToList(ctx context.Context, r string) error {
  	rgx, err := regexp.Compile(r)
  	if err == nil {
  		pf.mutex.Lock()
  		pf.detectionMechanisms = append(pf.detectionMechanisms, rgx)
  		pf.mutex.Unlock()
  	} else {
  		log.LoggerWContext(ctx).Error(fmt.Sprintf("Not able to compile the regexp %s", err))
  	}
  	return err
  }
docs: // addDetectionMechanismsToList add all detection mechanisms in a list