It's not that easy any more.
In modern iOS versions, Voice Over has an AI-powered screen recognition module that does not rely on the accessibility information that the developer provides.
As far as I know, it's not possible to prevent the use of this module, not without making the text on the screen unreadable to any OCR engine.
This module isn't perfect, in fact, it's far from perfect, but for something as simple as extracting a bunch of text that already appears on the screen, it would probably work.