The Hebrew language is available for
luatex, but the
preferred engine is the latter, because of its unique features for
bidirectional texts, not requiring explicit mark up.
pdftex you may need to install separately the
package, which is absent
in some TeX distributions. It’s available in Overleaf and, as
of August 2023, included in TeXLive.