Python Match Case Substring In Mysql Operator