1👍
✅
Remove the *
from your regex.
query = Model.objects.filter(content__iregex=r"[[:<:]]{0}[[:>:]]".format(key))
Source:stackexchange.com