How Rex Knew to Call Palpatine Sidious During Order 66 1

During Clone Wars Episode 11, how did Rex know to call ‘him’ Lord Sidious? Was this programming? Or something else? Here’s my theory. Excited for the final chapter in The Clone Wars and Order 66!

Por Diego