Good question.
I haven't worked on the BLE library for quite some time. If expressif released here APIs, then they are likely not supported.
We are using nimble as stack.
If it supports BLE 5, then changing the code might not be too hard; depending on what is needed.