Moving object backwards from player

Hello

I tried different approaches as seen in below code. I want the object to move backwards from my player when he gets to near.

The backing away does work, but as i get more and more near the object starts to actually penetrate the floor and after sjort while he will go through the floor.

I have colliders and rigidbody setup…

Please advice…

rb.AddForce(-transform.forward * 50f * Time.deltaTime);
rb.velocity = new Vector3(rb.velocity.x, rb.velocity.y, rb.velocity.z * -backSpeed * Time.deltaTime);
this.transform.position = Vector3.MoveTowards(this.transform.position, target.position, -backSpeed * Time.deltaTime);

You can’t mix forces and manipulating the transform. You shouldn’t be setting the transform position at all with a physics body, unless you’re teleporting it from one spot to the next.

This was just for showing which ones i used. I did not mix them or used them at same time. What do you suggest?
Thanks