If you do prevent the revolving door, you virtually guarantee yourself to exclude some of the most qualified and experienced people as you introduce an adverse selection process.
To make that prospect even money for someone qualified to work at a FAANG, the signing bonus for the government job would need to be in the millions (which obviously won't happen).
No matter how much money the government has from taxes, there is no way in hell they are going to pay enough to be competitive with FAANG. It's anathema to government culture (unless it's for a football coach). You have to let people go back to FAANG to recoup those losses or the government will never be able to hire anyone.