I was having the exact same problem and I resolved using an old version of liquibase (3.6.1 in my case). We tried 4.2.2 and 4.3.2 and both don’t work so try rolling back to an older version.
The version of Liquibase I was using when I reported this was 4.2.2 #36
I’ve worked around the issue to not use the ? operator, but if I need to, I’ll try an older version.
To answer @ronak’s question, Liquibase was executing the changeset normally, except it was just adding the extra ?. When attempting to run the function, Postgres would complain about the extra ? – unknown operator, I think was the message.