This is a bit too broad - it doesn't guarantee matching an exact application name, which means you could accidentally deploy to the wrong servers if your app names or similar or you make a typo.

How about replacing it with the same regex we use on stages and roles? `/,{0,1}#{application}(,|$)/`