As has been said above paying a tech to repair it won't usually be worth the price
Since the optical jack just holds the cable in place and isn't an electrical connector you might be able to glue it back in place. You will have to open up the soundbar to try it.