input: Write a python function to detect palindromes in a given sentence.
  assert detect_palindrome("Was it a car or a cat I saw?") == ['Was', 'a', 'or', 'a', 'I']
  assert detect_palindrome("Anna went to see civic duty.") == ['Anna', 'civic']
  assert detect_palindrome("No palindromes here!") == []
output: def detect_palindrome(sentence):
      import re
      def is_palindrome(word):
          return word == word[::-1]
      
      words = re.findall(r'\b\w+\b', sentence)
      palindromes = [word for word in words if is_palindrome(word.lower())]
      return palindromes