Context. PSR J1618−3921 is one of five known millisecond pulsars (MSPs) in eccentric orbits (eMPSs) located in the Galactic plane, whose formation is poorly understood. Earlier studies of these objects revealed significant discrepancies between observations and predictions from standard binary evolution scenarios of pulsar-helium white dwarf (HeWD) binaries, especially in the case of PSR J0955−6150, for which mass measurements ruled out most eMSP formation models. Aims. We aim to measure the masses of the pulsar and its companion, and constrain the orbital configuration of PSR J1618−3921. This facilitates understanding similarities among eMSPs and could offer hints as to their formation mechanism. Methods. We conducted observations with the L-band receiver of the MeerKAT radio telescope and the UWL receiver of the Parkes Murriyang radio telescope between 2019 and 2021. These data were added to archival Parkes and Nançay observations. We performed a full analysis on this joint data set with a timing baseline of 23 years. We also used the data from recent observations to give a brief account of the emission properties of J1618−3921, including a rotating vector model (RVM) fit of the linear polarisation position angle of the pulsar. Results. From the timing analysis, we measure a small but significant proper motion of the pulsar. The long timing baseline allowed for a highly significant measurement of the rate of advance of periastron of ω̇ = (0.00145±0.00010)°yr−1. Despite the tenfold improvement in timing precision from MeerKAT observations, we can only report a low-significance detection of the orthometric Shapiro delay parameters, h3 = 2.70−1.47+2.07 μs and ς = 0.68−0.09+0.13. Under the assumption of the validity of general relativity (GR), the self-consistent combination of these three parameters leads to mass estimates of the total and individual masses in the binary of Mtot = 1.42−0.19+0.20 M⊙, Mc = 0.20−0.03+0.11 M⊙, and Mp = 1.20−0.20+0.19 M⊙. We detect an unexpected change in the orbital period of Ṗb = −2.26−0.33+0.35 × 10−12, that is an order of magnitude larger and carries an opposite sign to what is expected from the Galactic acceleration and the Shklovskii effect, which are a priori the only non-negligible contributions expected for Ṗb. We also detect a significant second derivative of the spin frequency, f̈. The RVM fit reveals a viewing angle of ζ = (111 ± 1)°. Furthermore, we report an unexpected, abrupt change in the mean pulse profile in June 2021 of unknown origin. Conclusions. We propose that the anomalous Ṗb and f̈ we measure for J1618−3921 indicate an additional varying acceleration due to a nearby mass. The J1618−3921 binary system is likely part of a hierarchical triple, but with the third component much farther away than the outer component of the MSP in a triple star system, PSR J0337+1715. This finding suggests that at least some eMSPs might have formed in triple star systems. Although the uncertainties are large, the binary companion mass is consistent with the Pb − MWD relation, which has been verified for circular HeWD binaries and also for the two HeWDs in the PSR J0337+1715 system. Future regular observations with the MeerKAT telescope will, due to the further extension of the timing baseline, improve the measurement of Ṗb and f̈. This will help us further understand the nature of this system, and perhaps improve our understanding of eMSPs in general.