Since Oracle made significant code changes in the jdbc drivers for 22.214.171.124 and upwards. There is an issue with connecting to Oracle databases with SQLDeveloper or using java code to connect to an Oracle databse.
Older drivers seem to work correctly with ZPA.
For SQLDeveloper on macOS place the following entry in sqldeveloper.conf or product.conf file
For java code or java system properties run the following:
Alternatively, if you put your code in a Docker container, this also alleviates the issue.