This looks like a mixup in sourcing. Are you running the ros1_bridge anywhere here? I’m asking because that could explain why it is looking for something in ROS1.
You can try launching your file in a new terminal and be sure of only sourcing ROS2 and your workspace:
source /opt/ros/foxy/setup.bash
source ~/ros2_ws/install/setup.bash