As you described, sharp pain
close to L4 and left rib with no abdominal/digestive symptoms, it is likely that a possible cause of such pain is of musculo-skeletal origin - spines, ribs or muscles around these. There is no other symptoms that suggest pain is due to liver pressure on the spleen or pancreas or stomach ulcer
is use for seizure and neuropathic pain
and is not expected to treat pain of musculo-skeletal origin. Anti inflammatory drugs will be much effective. However it is important you go to you doctor as he/she will established the origin of pain ( musculoskeletal pain
could be of several origin: discal hernia, trauma etc) and advise appropriate treatment.
Hope this is helpful