Turns out, all we needed to do was simply comment out the --reload option if used async playwright and fastApi in windows. Just the code
--reload