In the crystal, inter­molecular N—H⋯O and C—H⋯O hydrogen bonds connect mol­ecules into chains along theb-axis direction through the dimethyl sulfoxide solvent mol­ecule, formingC(10)(6) motifs. These chains are connectedviaS—O⋯π inter­actions, π–π stacking inter­actions and van der Waals inter­actions.