I have a list of git branches in Python.

`['fb_fix', 'master', 'rel.100.0', 'rel.101.0', 'rel.96.0', 'rel.96.2', 'rel.96.2.0', 'rel.97.0']`

I need a regular expression via re module, which will include all the list items where there is prefix `rel.` and any numbers by masks `00.0` or `00.0.0` or `000.0` or `000.0.0`, i.e. exclude other values from the list, in my example this is `'fb_fix'` and `'master'`:

`['rel.100.0', 'rel.101.0', 'rel.96.0', 'rel.96.2', 'rel.96.2.0', 'rel.97.0']`

```
import subprocess

git_branches = subprocess.run("git branch -r", shell=True, stdout=subprocess.PIPE, encoding='utf-8')
branches_str = git_branches.stdout.replace("origin/", "")

branches_list = branches_str.split()
print(branches_list)

```