The first thing is to get more information about your situation. Is this a nine handed table or are you playing full ring sngs these are they players in the pot? Second if you are four handed are there any ICM implications? For example is this a sng where three people get paid and this is the bubble. Aside from that I don't think this is a bad play but there may be a couple more profitable plays.
With the villain being the only player to have you covered a 4 bet to 10 big blinds is an option. The villains raise is technically an open and your jam is the 3 bet since the other two limped. This size will prevent you from being six bet if the UTG limper shoves since they only have 12 big blinds forcing the villain into a call or fold spot.
Another option is to just flat call the villains raise. This is more of a pot control move and leaves the door open for the UTG limper to call or shove. If they shove you will get more information on the villains hand depending on what they do and if ICM is in play you could make a tight fold to a villain reshove if it puts you in the money.
I do make the assumption the the player with six big blinds is just going to go with their hand in this spot. But either way his hand is pretty irrelevant given their stack size.
Again this is not to say what you did was a bad play but gives you a couple more options given the spot you were in. Knowing nothing about the villain raising from this spot against those stacks just screams strength and by slowing down just a little you could realize more of the
equity of your hand by using your position on him to your advantage.
Hope this helps.
UTG +1 limps (12bb eff)
BTN limps (6bb eff)
Villain 3bet to 4bb (36bb eff)
Hero 4bet jam QQ (43bb eff)
Is this considered good or bad play?