Is there a script that can mirror texture +uv for a mirrored painted object ?

I am wondred its maybe wrong place to ask here.
But when i texture an object that mirror modifier on it, i get nice symmetrical painting, i like that.

But when i apply the mirror, what i would like is that the bitmap gets twice as wide.
So that the bitmap contains the left and right side of the object. (ea mirror orginal image on its right side).
And the UV’s get mapped depending on side, to their bitmap side.
The benefit would be that after general symmetrical painting (which is supper), one could later add some asymmetrical effects. so for example one then could ad a scar on the right side of a head. Create rust on a car only on the left side etc.

Maybe there are also other ways for this, so I’m asking it under textures
(i doubt if i should instead ask it under scripting).

You can do manually,
Apply modifier
Create new UV map so both halves are not overlapping
UV unwrap whole to this new map (duplicate original, select half object and move these UVs to one side in UV editor ?)
Render Bake texture from original UVs to new UVs

those UVmaps are they accesible somehow ?, so i could select all left side UV’s.

i’m thinking, if i just mirror my texture image, say texture-mirror.jpg, then merge it to the orginal image, and move the selected UV’s to it