Hi @angelinabrown0123
I had a look to your DWG but the text it's not part of block, it's part of entire drawing.
If text to be selected it's part of block I suggest to become text as attribute of block, or, on the opposite it's quiet complicate.
I guess that a solution could be find the specific block in the drawing, got the insertion point, search again for a text around the block coordinates plus an X,Y factor. On the opposite if the text it's a part of block as attribute it's more easy to manage and in case modify the text.
I know are simply suggestion no code to copy and paste, but we don't know your final scope, for example block it's existing and cannot be modified, or something like that, text will be always on a specific layer, block will be always the same.... a lot of questions that could change the right approach to an automation of your document.
Hope hear you again