Community
With a similar goal, I've used the following steps:
- create a bounding polygon for the block. (try to use a rectangle if possible.)
- expand the bounding polygon to enclose the related text.
- use the polygon for a window-limited selection set.
- add, if useful, filters in the selection set for the text's layer and for the text object type.
- iterate through the items in the selection set, qualifying the text with your regex - if needed.
Your success will depend on the uniformity of your drafting conventions. (How "directly in the vicinity" the text actually is.)