<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def endswith(self, suffix, ignore_case=False, options=None):
 """ A query to check if a field ends with a given suffix string **Example**: ``session.query(Spell).filter(Spells.name.endswith("cadabra", ignore_case=True))`` """

        return self.regex(re.escape(suffix) + '$', ignore_case=ignore_case, options=options)