This regex will do the trick.
^[01]*(?=.*?1.*1)(?=.*?0.*0).{4}$
Demo
^ It is claimed that we are at the beginning.
[01]* Matches 0 or 1, zero or more times.
lookahead (?=.*?1.*1)(?=.*?0.*0).{4}$ , 4 1 0. , . , @nhahdth.
^[01]*(?=.{4}$)(?=.*?0.*0).*?1.*1.*
DEMO