Fixes bug in the DispatchType::Regex depreciation warning