Learning CNF formulas from uniform random solutions in the local lemma regime