Hi @HinaB1 Then it should be working, please check the working examples here:
https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/adobe/acs/commons/redirects/models/RedirectRule.java#L114
https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/...