modified regex for finding table_name from a multiline sql query in postgresql