Python Postgresql Change unix socket

I use google cloud. I have a flask app running in cloud run. This application needs to connect to postgresql database that's inside sql. I need to change psycopg2 unix socket to be able to connect my app to postgresql database. I looked at documents but i couldn't find anything related to unix socket. How can i change unix socket in psycopg2?