So your edit wasn't really "stolen". One of the reviewers decided there was something about your edit that was not good enough, and decided to rejected it. Then went back and applied some of your changes to the post on his/her own. They did not receive any reputation or any other reward that they would have received had they decided to "Improve" your edit instead.
To be perfectly honest, while I didn't like your title edit*, your edit was better than the final edit as you properly indented the import statement that was not formatted as code, so rejection seemed a bit overzealous, but there may have been another issue or perhaps a misclick on the part of the reviewer.
So to address your original question of what to do. In most cases, you do absolutely nothing. A single rejection is not the end of the world and unless you have a lot of rejected edits in the last 7 days, nothing negative will happen to you (if you get enough rejections, you can get automatically banned from suggesting edits).
If you find that you seem to be targeted by a single user (maybe they are going out of their way to find and reject many of your edits and apply the same thing themselves), you can raise a custom moderator flag (click on one of the questions in which you had a rejected edit) and briefly, but completely, explain the concern and why you are flagging the post.
But if you are generally curious as to why your edit was rejected, you can ping any editor using the @-notion in a comment and ask why (autocomplete won't work however). They will be notified of your comment and may choose to respond. They are under no obligation to do so and may choose not to respond simply because they don't want to get engaged in a prolonged discussion about a single edit. If you go this route, be sure you go back and clean up your comments after the reviewer responds or they have had enough time to see the comment. Don't leave it there for months. And don't do this often. Comments are extra noise on the post and you don't want every question with a "reject-and-edit" suggested edit to have a "why did you reject my edit" comment.
* - With regards to your title edit, my issue with it is because it was unnecessary. The original title was very clear and brief, but yours added a lot of unnecessary words just to make it into a question (which is not a requirement of titles), so use this rejection as a learning experience to help your editing skills.