Xojo has
regex.Replace(stringToGetReplacements As String) As String
Maybe you could make a Feature Request to get another signature:
regex.Replace(stringToGetReplacements As String, match As RegExReplaceFunction) As String
Public Delegate Function RegExReplaceFunction(match As String) As String