Unfortunately you will almost certainly be almost hit again. Maybe you'll even be lucky and end up in an actual collision.
However, if you are smart about where and when you ride,you can dramatically reduce the risks you expose yourself to.
- Understand that drivers are dumber than you can ever give them credit for
- Eye contact is your friend. Drivers are less likely to kill you if they realize you're a person too, and not just a strange 2 wheeled contraption
- Counterpoint to above: Just because someone looked in your direction does not mean they made eye contact or saw you.
- TAKE THE LANE I've gotten into more trouble tucking into the sides of a lane vs taking it
You are the only one who can keep you safe. So take the lane and ride like you belong.
I think that this is a point that often gets understated. Most of us aren't important to be specifically targeted for being watched, but there is a significant amount of passive data collection / watching that goes on by governments and big tech. It definitely makes life a little better to not have outrage and echo chambers being the only internet you see.