Sounds like you are using "Script" to be synonymous with "Interpreted language"
As a developer, who works with developers in the office (Well now on zoom lol), I can 100% assure you every single one of us professional devs still refer to programming in an interpreted language like Python or Javascript to be "Coding"
As a professional dev, here's what I would lay out as the definition that defines the difference between "script" and "code"
A script is code, but not all code is script. Script basically just refers contextually to a chunk of code that is fairly linear, has minimal to zero logic branches (so no if statements basically, but loops, breaks, and guard clauses are okay)
Basically, a script runs straight from start to finish and should logically run nearly every line of the code.
Basically, "Do A, then B, then C, then D, then E... then Z, then done"
Whereas code is a more broad term that covers all.. well... code? Like its everything. Scripts, UI, Queries, Markup, CSS, anything that is "Human readable text representing a series of abstracted computer commands" I would call "code", all of it is code.
Basically I would consider "code" to be the most abstract term that everything falls under.
Its actually easy to see, in the actual terms.
"Code" literally means "One thing that attractively represents another", like "They seem to be speaking in code!" or Morse Code, or coding a program.
"Script" is a list of things to be done, but its pretty much always in a specific order and you would never consider skipping parts or doing it out of order. Like a script for a play, you simply read it out from top to bottom and do what it says to do.
"Program" on the other hand is more complex, kind of like a script, but it can have logical breaks, junctions, and forks. You wont necessarily follow a program from top to bottom, it may send you all over the place, it may abruptly end at the start, it may put you into an infinite loop!
Markup, on the other hand, is a form of Code that holds data in a shape. Markup doesnt inherently *do* anything, its more like a lookup. Like a phone book. Phone books dont have a plot or story, but they certainly can be used to look people's phone numbers up.
Compiled languages simply are languages that take your code written one way, and then compile it into a different language, typically because that one is better understood by computers and removing the layer of abstraction makes things run smoother. The most common example of this is compiling into Machine Code (.exe files), but there are other types! Like compiling Typescript into Javascript!
Interpreted languages are ones that one program reads, then does actions of its own based what it read. So machine code is technically the lowest level of interpreted language, since the CPU reads the machine code directly and performs actions. Other examples include Python and Javascript, or Lua!
There's even more types too, Declarative, Object Oriented, Functional, Esoteric, etc.
But the key thing to remember is this:
Any given program or script you write, can be written in any language, and any language can have multiple of these labels apply to it. Lua is both an Object Oriented and Interpreted language, and you can write both Programs and Scripts in Lua.