input: Write a python function to search for a specific regex pattern in a list of strings and return the matching strings.
  assert search_pattern('ab+c', ['abc', 'def', 'ghi', 'abcd', 'abcde']) == ['abc', 'abcd', 'abcde']
  assert search_pattern('d+', ['abc', 'def', 'ghi', 'abcd', 'abcde']) == ['def', 'abcd', 'abcde']
  assert search_pattern('ghi?', ['abc', 'def', 'ghi', 'abcd', 'abcde']) == ['ghi']
output: import re
  
  def search_pattern(pattern, strings):
      return [s for s in strings if re.search(pattern, s)]