[noun (person)] + としたことが
Note: The noun typically refers to a competent/respected person (often the speaker). Followed by a clause describing the surprising mistake or failure.
The expression としたことが is used to express surprise, disbelief, or disappointment that someone – usually a person who is expected to know better or perform well – has done something unexpected or uncharacteristic. It conveys the nuance of "of all people" or "someone like X, who should know better."
The structure is Noun + としたことが, where the noun refers to a person (often the speaker themselves or someone respected/competent). The sentence that follows describes the surprising or embarrassing mistake or action.
The expression is frequently followed by:
This expression is relatively formal and literary in tone, and is commonly found in written Japanese, news commentary, and dramatic speech.