Literal mode does not treat dots, stars, or brackets as patterns. The replacement is inserted as you typed it, including when it contains a dollar sign.
Pattern mode uses JavaScript regular-expression syntax without flags. Nested open-ended quantifiers are refused so a pattern cannot stall the page. The replacement is still literal: it does not expand backreferences.