Is it possible to have two different text positions in a scatterplot?

I have categorical data, I’m seeking one side to have textpostion “middle left” and the other data to have textposition “middle right”.

I tired adding one part of the data as add_scatter and a different textposition but I don’t think that works. I take it the update_traces function applies to the full fig.

Would the work around be to add annotations?