There is no set amount of time. The length of time depends on a number of factors, eg a person's severity of symptoms, what types of symptoms, what they are eating, if they are taking meds and/or supplements, do they have additional illnesses that may slow recovery.
Despite this, most people find that returning temporarily to easily digestible SCD legal foods speeds recovery from the flare.