I am trying to edit the dhcpcd.conf file of my Raspberry Pi with a python script using regex.
The content of the file I am trying to change is the following: