import re
answer = "king tut"
bad_context = "we run with the king tut? on sunday"
good_context = "we run with the king tut on sunday"

reg_answer = re.compile(r"(?<!\S)" + re.escape(answer) + r"(?!\S)")
if reg_answer.search(good_context):
	print("good_context matched")
else:
	print("good_context not matched")
	
if reg_answer.search(bad_context):
	print("bad_context matched")
else:
	print("bad_context not matched")