Does Sword of Sharpness’s maximize damage rule apply to a Rogue’s Sneak Attack damage? [duplicate]

If a rogue hits someone with a scimitar of sharpness and the preconditions for sneak attack are in place, does the rogue also get to maximize the damage of sneak attacks?

For reference the Sword of Sharpness states:

When you attack an object with this magic sword and hit, maximize your weapon damage dice against the target. […]