Robust Machine Learning for Regulatory Sequence Modeling under Biological and Technical Distribution Shifts