If an Army private accidentally texted the details of a classified military operation to a reporter, let alone transmitted any classified information to anyone who was unauthorized over an unsecured device, they’d be immediately charged and likely spend time in Leavenworth.
But it’s Pete Hegseth, just the Secretary of Defense, so probably not.