I was going to use ChatGPT to write this Sub as well, but was going to let some of the RegEx folks weigh in. Since Josef "broke the seal", try this:
Sub ExtractIBANSection()
Dim regex As Object
Dim matches As Object
Dim inputText As String
Dim pattern As String
Dim result...