I had 2 early miscarriages (1 was a "chemical" pregnancy where I was only pregnant for like a minute). For the first one, waited 1 cycle to make sure I got a period again so I could track stuff correctly. For the second one, I was told by doctors to wait 3 months before trying again. This advice is somewhat controversial, so I only waited 1 cycle again. I wasn't mentally ready right after - I remember crying a lot at Thanksgiving from seeing all the kids playing at a dinner gathering- but it didn't take long.
Took me a couple months to get pregnant after that, but all total, about 5 cycles of active trying to get to a successful pregnancy. Result of said pregnancy is napping at the moment.
Best of luck, OP. Miscarriages are awful. You have my empathy.