code: def test_split_regex(any_string_dtype):
      # GH 43563
      # explicit regex = True split
      values = Series("xxxjpgzzz.jpg", dtype=any_string_dtype)
      result = values.str.split(r"\.jpg", regex=True)
      exp = Series([["xxxjpgzzz", ""]])
      tm.assert_series_equal(result, exp)
  
imports: from datetime import datetime
  import re
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series, _testing
  from pandas.tests.strings import _convert_na_value, object_pyarrow_numpy
label_desc: Use image node_id 4 for calling a global function with example usage: test_split_regex(any_string_dtype) without return types