To review, the four steps of Midrash are:
Peshat (lit. Simple). Read the text for its simplest, most literal meaning.
Remez (lit. Hint). Rather than seeking to avoid or rationalize what appear to be contradictions or textual errors, seek them out as hints of deeper meaning.
Drash (lit. Investigation). Use imagination to explore all possible meanings of the text.
Sod (lit. Secret). Meditate on the mysteries revealed through the Drash and open ourselves to surprising revelations.
https://faithx.net/2017/08/18/midrash-ancient-bible-study-postmodern-world-part-2/