Here are some synonyms for upbraid:
* Reprimand
* Scold
* Rebuke
* Reproach
* Censure
* Chide
Examples:
* "The teacher upbraided the student for his disruptive behavior."
* "He was upbraided by his boss for missing the deadline."
* "The king upbraided his advisors for their lack of foresight."
Note: While "upbraid" can be used for both formal and informal situations, it generally carries a stronger sense of disapproval and anger than some other words for criticizing.