Text this: Factor Graph-Based Planning as Inference for Autonomous Vehicle Racing