Questions & Answers about Si è rotto il tassello mentre lo inserivo.
Italian often puts the subject after the verb, especially when describing an event that happened.
Both are possible:
The version with the subject after the verb can sound a bit more natural when reporting what happened, almost like the thing that broke was the plug.
So the word order is flexible, and this is a very normal Italian structure.