This short example shows how to use fonts available on Overleaf to write Hebrew; the list of available fonts are here.
For more examples on using the polyglossia and babel packages to typeset Hebrew (and other languages), have a look at this and this help page.
A sample of a multilingual document (Arabic, Greek, Hebrew, Japanese, Serbian, etc.) created with babel and lualatex.
See also the following resources:
Multilingual typesetting on Overleaf using babel and fontspec (XeLaTeX and LuaLaTeX)
Gallery example here
Multilingual typesetting on Overleaf using polyglossia and fontspec (XeLaTeX and LuaLaTeX)
Gallery example here