stefansteve1999@tg says to OwO
s/(a+b|a+a+b|a+a+a+)+a/b