Burning while passing urine is often a urinary infection, and it's worth checking if the hot flashes are actually a separate sign of your hormones shifting around this age.
Next Steps
Get a urine culture done for the burning, and mention the hot flashes separately to your gynaecologist so both get addressed.
Health Tips
Don't assume the two are connected. Your hot flashes usually need a separate evaluation.