I have the following string,
str = '''
```
echo hello
```
THis works just fine . I love it

| Column 1 | Column 2 | Column 3 |
| -------- | -------- | -------- |
| Text | Text |  |
ss
Hello world!
living on love
'''
Given the following substring: 35b17c4b-7f41-4552-8f9b-e883ccdc2c00
I would like to replace all parent strings containing the substring 35b17c4b-7f41-4552-8f9b-e883ccdc2c00.
This implies the results should end up being something of this form:
str = '''
```
echo hello
```
THis works just fine . I love it
| Column 1 | Column 2 | Column 3 |
| -------- | -------- | -------- |
| Text | Text | |
ss
Hello world!
living on love
'''
So the substring removal or replacement should remove the complete line of string  containing the substring 35b17c4b-7f41-4552-8f9b-e883ccdc2c00
print(re.sub(r'\b(35b17c4b-7f41-4552-8f9b-e883ccdc2c00\w*)', ' ', str))