When I release the power trigger on my tool, I see a blue spark from the motor, is this OK?

Yes its OK. Many tools are fitted with an electronic brake which activates once the switch is released.

This can produce a spark from inside the tool but it is part of normal operation.