If you have another wheel, put that in the frame to make sure that the frame isn’t off. Or you can use the
string method (see “checking frame alignment” section)
Since you have flipped the wheel around and it is off to the same side, it is most likely a dishing issue. It’s fixable but not simple. If you have access to a wheel truing stand, the job is easier but you can do it with your bike frame. Use your brake calipers as the feelers if you don’t have a brake stand. You can also add zip ties as the feelers if you have to.
Remove the tire first. Put a drop of oil on the threads of each spoke. Any oil will do. 3-in-One or Triflow works well. It looks like the spoke tension on the driveside are low. You need to pull the rim towards the driveside. You will do that by tightening the spokes on the driveside but you will probably need to loosen the nondriveside as well. Start by loosening the nondrive spokes…all of them…no more than 1/2 turn. A 1/4 turn may be better.
Now tighten the spokes on the driveside by the same amount you loosened the nondrive side. Check the spacing after you are done and do another round if needed. You can check
this post for making a dishing tool if you like. If you don’t want to make one, you can use
Andrew Stewart’s method. You can also turn the wheel around in the frame to check the dish.
Keep loosening and tightening until you are as close as you want to be.