The relay's coil and the switch already provide proper mains isolation. However you power the relay via a non isolated supply. It is a "capacitive dropper" circuit which is not isolated. Connect it to your RPi and your RPi will then become mains live.
If you want to keep the powering of the relay the same (i.e. non isolated) you will need to either use another relay (there are relay modules for RPi) or an optical isolation module. Then that module will provide the isolation. The circuit that you show does not provide any mains isolation. The reason that the relay is there is to switch a large current, not to provide any isolation.
I’m not very experienced with 220V AC. Then educate yourself on the subject before messing with circuits at mains voltage. Even seasoned professionals treat mains voltage with respect and so should you.