How close to my race day should I wait to get my foot pain checked?

You should never wait. Foot pain in not a normal part of training for a race, injuries can occur at any time and should be evaluated quickly to prevent any loss in your exercise base and economy.