Search backward from index1 (down to index2 if given) for the nearest preceding range of characters tagged with tagName, and return a two-element tuple of its start and end indices, or an empty tuple if there is no such range.
tkinter/Text.tag_prevrange
Text.tag_prevrange