TeXMaths outputs "LaTeX Error: File `article.cls' not found"

The host is an up to date Arch linux running kernel 6.7.0, Writer v.7.6.4.1 (X86_64) / LibreOffice Community Build ID: 60(Build:1) with the TeXMaths v0.52 extension.
Trying to insert any LaTeX object (inline or otherwise), e.g. \left( hello \right), I get the following log file error:

This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/Arch Linux) (preloaded format=latex 2023.9.17) 23 JAN 2024 15:23
entering extended mode
\write18 enabled.
%&-line parsing enabled.
**tmpfile.tex
(./tmpfile.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-22>

! LaTeX Error: File `article.cls’ not found.

Type X to quit or to proceed,
or enter new name. (Default extension: cls)

Enter file name:
! Emergency stop.
<read *>

l.2 \usepackage
{amsmath}^^M
*** (cannot \read from terminal in nonstop modes)

Here is how much of TeX’s memory you used:
23 strings out of 477813
481 string characters out of 5834415
1849385 words of memory out of 5000000
20357 multiletter control sequences out of 15000+600000
512287 words of font info for 32 fonts, out of 8000000 for 9000
62 hyphenation exceptions out of 8191
19i,0n,29p,78b,17s stack positions out of 10000i,1000n,20000p,200000b,200000s
No pages of output.

I have restarted LO with a new ~/.config/libreoffice/4/user profile but the problem does not go away.
I also made sure that dvisvgm is installed and so are texlive-basic and texlive-bin.

TeXMaths v0.49 and prior worked for me in the past.
Any pointers would be very welcome. Thank you.

Work fine in my system ArchLinux:

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: 60(Build:1)
CPU threads: 16; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: es-MX (en_US.UTF-8); UI: en-US
7.6.4-2
Calc: threaded

Following Roland Baudin’s suggestion, I uninstalled texlive-basic and libreoffice-extension-texmaths, both from the Archlinux extra repo.
Upon reinstalling them:
> sudo pacman -S texlive-basic libreoffice-extension-texmaths)
I was given the possibility to install further TeXlive related packages, eg.
texlive-plaingeneric
texlive-binextra
texlive-context
texlive-fontutils
texlive-latex
texlive-mathscience
and a few others.

I installed/re-installed all of the above and now the TeXmaths extension in LO is back to normal.

Although this had nothing to do with LO Writer per se, I inform of the solution here, because a deliberately naive user of LO (that’s me!) may not (at first) grasp that correctly installed LaTex resources are needed for certain extensions to work correctly. It is the case of TeXmaths.
I can only surmise that somehow this host’s basic LaTeX installation was tempered with. Hence the disruption I experienced.
SOLVED