Problem with package "OhMyREPL" in startup.jl file

From the link Dynamic REPL prompt?
we develop this script for startup.jl


        @eval using OhMyREPL
		@eval using Crayons
		@eval using Dates
    catch e
        @warn  e
using Dates
prompt() = string(Dates.format(Dates.Time(,"HH:MM:SS")) * "->>"
atreplinit() do repl
isdefined(@__MODULE__(), :OhMyREPL) ? OhMyREPL.input_prompt!("Julia>",:green) : nothing
isdefined(@__MODULE__(), :OhMyREPL) ? OhMyREPL.output_prompt!(prompt,:red) : nothing


Everything seems to run fine except: enable_autocomplete_brackets (true); that both in REPL and VScode, I observe erratic behavior:
for example:

using Dates 
days = Dates.datetime2julian.(Dates.DateTime(2018, 1, 1, 0, 0, 0):Dates.Day(1):Dates.DateTime(2018, 12, 31, 0, 0, 0))
eqt_time(d) = -7.65 * sind(d) + 9.87 * sind(2d + 206);
eq_values = map(equation_time, days.-days[1])

Julia> eq_values = map(equation_time, days.-days[1])])
ERROR: syntax: extra token "]" after end of expression
 [1] top-level scope at none:1

But if you don’t add the bracket and final parenticis to the end of the line, it results

eq_values = map(equation_time, days.-days[1

eq_values = map(equation_time, days.-days[1])
14:55:49->> 365-element Array{Float64,1}:

What is wrong with the script?
How to correct this behavior?

I guess this is on Windows when pasting? This is a bug that stems from the Julia package managers REPL mode overrides the ] key that OhMyREPL wants to use. You can run with enable_autocomplete_brackets(false) until it is fixed.

Does @eval using OhMyREPL load the package in the global context? In my startup script, I had to instead load the package with using OhMyREPL.