Get Sprite Corner Position After Rotation

When I hover on the sprite I use border corner images that im placing around the sprite using
getTopLeft(), getTopRight(), getBottomLeft(), getBottomRight()

When I rotate the sprite and hover the calculations from getTopLeft() and others are also rotated.

Is there any other way or algorithm that can reverse that and use the always same position of the corners?

image
image
image
image

I think

const { left, top, right, bottom } = Phaser.Display.Bounds.GetBounds(
  sprite,
  new Phaser.Geom.Rectangle()
);