I saw similar lights in the sky off the eastern coast of Sri Lanka back in 2017. I assumed it was military aircraft since that area is a hotbed of military activity.
But then it abruptly turned almost 60 degrees at a sharp angle - like a cue ball bouncing off the walls of a billiards table.
I don’t know of anything that can move like that.