Replace usage of the ocaml-re library as it isn't thread safe
Signed-off-by: Akshay <akshay.ramani@citrix.com>