Postgres Find String Python Functions With Variable Number