Macro - can't record - Error: Basic syntax error

Using Libreoffice > Calc and then I choose Tools > Macros > Organize Macros > Basic and then press the NEW button I get and Error dialog box with the words
“Basic syntax error. Expected: Sub” and an OK button

This is with the following version:
Version: 6.4.6.2 (x64)
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win;
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded