You can't use regex on the source/target paths the way you explained.
You can break down the deployment in separate definitions to allow different target directory for each definition. Although I doubt if thats what you are looking for.