This is a common NLP problem, and transformers are a good first port of call for a problem like this.
You should google these terms:

Named entity recognition
Chunking

You’ll need to have labeled data, usually marking every token in your document with perhaps IOB tags 5 that can demarcate the start and end of a coherent chunk of text.