Can I visit my home country and enter back into US with 2 months of F1Visa stamping date remaining while OPT ends in July 2022.

I might also apply for H1 in March 2021 and it would be in processing during my visit and re-entry to the US in Mid of May. Is it safe to travel in this present situation? If yes, what is the documentation list that I need to carry?