Sure it's possible.
You are half way through this. Your problem is, that inside a button group, they have a selector for not(:first-child) and not(:last-child) . You need to overwrite this one, too.
.btn-group>.btn:not(:first-child):not(:last-child) { border-radius: 25px }