What regex in JavaScript can put numbers into the parentheses [closed]

I have texts like this:

Line 7 introduces the concept of "winter sleep," 
which is further developed in the following lines 8-17. 

I need to put all numbers following words “line” or “lines” into the parentheses.

For example:

  • “Line 7” => “Line (7)”
  • “line 7” => “line (7)”
  • “Lines 8-17” => “Lines (8-17)”
  • “lines 8-17” => “lines (8-17)”